mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add revision. Version code cleanup.
This commit is contained in:
parent
0c6392d8c7
commit
89fd70a766
2 changed files with 17 additions and 20 deletions
|
|
@ -3611,7 +3611,7 @@ end
|
|||
|
||||
-- ###########################################
|
||||
|
||||
function getNtopngRelease(ntopng_info)
|
||||
function getNtopngRelease(ntopng_info, verbose)
|
||||
local release
|
||||
|
||||
if ntopng_info.oem or ntopng_info["version.nedge_edition"] then
|
||||
|
|
@ -3633,6 +3633,10 @@ function getNtopngRelease(ntopng_info)
|
|||
-- E.g., ntopng edge v.4.3.210112 (Ubuntu 16.04.6 LTS)
|
||||
local res = string.format("%s %s v.%s (%s)", ntopng_info.product, release, ntopng_info.version, ntopng_info.OS)
|
||||
|
||||
if verbose and ntopng_info.revision then
|
||||
res = string.format("%s %s v.%s rev.%s (%s)", ntopng_info.product, release, ntopng_info.version, ntopng_info.revision, ntopng_info.OS)
|
||||
end
|
||||
|
||||
if not ntopng_info.oem then
|
||||
local vers = string.split(ntopng_info["version.git"], ":")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue