Convert uptime to float64 for backwards compatability.

Fixes #390
This commit is contained in:
Cameron Sparr 2015-11-23 12:30:05 -07:00
parent 9999b2e3c6
commit bcafadb68a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func (_ *SystemStats) Gather(acc plugins.Accumulator) error {
acc.Add("load1", loadavg.Load1, nil) acc.Add("load1", loadavg.Load1, nil)
acc.Add("load5", loadavg.Load5, nil) acc.Add("load5", loadavg.Load5, nil)
acc.Add("load15", loadavg.Load15, nil) acc.Add("load15", loadavg.Load15, nil)
acc.Add("uptime", hostinfo.Uptime, nil) acc.Add("uptime", float64(hostinfo.Uptime), nil)
acc.Add("uptime_format", format_uptime(hostinfo.Uptime), nil) acc.Add("uptime_format", format_uptime(hostinfo.Uptime), nil)
return nil return nil