[GO][EDIT] detect-internet collector now shows last status change time instead of time.Since

This commit is contained in:
BuildTools
2020-12-02 15:16:04 +01:00
parent ddddc2d1a5
commit e3a812c942

View File

@@ -73,7 +73,7 @@ func (c *internetCollector) collectStatusForEth(name string, se *proto.Sentence,
return
}
value := time.Since(t).Seconds()
value := float64(t.Unix())
ctx.ch <- prometheus.MustNewConstMetric(c.descriptions["state-change-time"], prometheus.GaugeValue, value, ctx.device.Name, se.Map["name"], se.Map["state"])
}