cmd/syncthing: Uptime should be an integer

This commit is contained in:
Audrius Butkevicius 2017-10-14 18:22:30 +01:00
parent cdbb32d0f0
commit 1e9e9cbebb

View File

@ -181,7 +181,7 @@ func reportData(cfg configIntf, m modelIntf, connectionsService connectionsIntf,
res["upgradeAllowedPre"] = !(upgrade.DisabledByCompilation || noUpgradeFromEnv) && opts.AutoUpgradeIntervalH > 0 && opts.UpgradeToPreReleases
if version >= 3 {
res["uptime"] = time.Now().Sub(startTime).Seconds()
res["uptime"] = int(time.Now().Sub(startTime).Seconds())
res["natType"] = connectionsService.NATType()
}