diff --git a/cmd/syncthing/usage_report.go b/cmd/syncthing/usage_report.go index aa5ea6a0..3b6219a8 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() }