Fix chrony plugin does not track system time offset (#2989)

This commit is contained in:
JSH
2017-07-11 17:08:40 -04:00
committed by Daniel Nelson
parent a9d332d673
commit 0197a614ed
3 changed files with 4 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ func processChronycOutput(out string) (map[string]interface{}, map[string]string
}
name := strings.ToLower(strings.Replace(strings.TrimSpace(stats[0]), " ", "_", -1))
// ignore reference time
if strings.Contains(name, "time") {
if strings.Contains(name, "ref_time") {
continue
}
valueFields := strings.Fields(stats[1])