cmd/syncthing: Uptime should be an integer
This commit is contained in:
parent
cdbb32d0f0
commit
1e9e9cbebb
@ -181,7 +181,7 @@ func reportData(cfg configIntf, m modelIntf, connectionsService connectionsIntf,
|
|||||||
res["upgradeAllowedPre"] = !(upgrade.DisabledByCompilation || noUpgradeFromEnv) && opts.AutoUpgradeIntervalH > 0 && opts.UpgradeToPreReleases
|
res["upgradeAllowedPre"] = !(upgrade.DisabledByCompilation || noUpgradeFromEnv) && opts.AutoUpgradeIntervalH > 0 && opts.UpgradeToPreReleases
|
||||||
|
|
||||||
if version >= 3 {
|
if version >= 3 {
|
||||||
res["uptime"] = time.Now().Sub(startTime).Seconds()
|
res["uptime"] = int(time.Now().Sub(startTime).Seconds())
|
||||||
res["natType"] = connectionsService.NATType()
|
res["natType"] = connectionsService.NATType()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user