From 1e9e9cbebbbcab81ce24bad77cc052023a9d7175 Mon Sep 17 00:00:00 2001 From: Audrius Butkevicius Date: Sat, 14 Oct 2017 18:22:30 +0100 Subject: [PATCH] cmd/syncthing: Uptime should be an integer --- cmd/syncthing/usage_report.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/syncthing/usage_report.go b/cmd/syncthing/usage_report.go index aa5ea6a0a..3b6219a8e 100644 --- a/cmd/syncthing/usage_report.go +++ b/cmd/syncthing/usage_report.go @@ -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() }