Use the right timezone for the timestamps in the client stats.

This commit is contained in:
Ed Schouten committed 2017-03-21 15:41:16 +01:00
1 parent 09ca7de8c1
commit 21715e2dc3
1 file changed
+1 -1
+1 -1
View File
@@ -183,7 +183,7 @@ func CollectClientStatusFromReader(statusPath string, file io.Reader, ch chan<-
ch <- prometheus.MustNewConstMetric(
openvpnStatusUpdateTimeDesc,
prometheus.GaugeValue,
float64(time.Unix()),
float64(time.Local().Unix()),
statusPath)
} else if desc, ok := openvpnClientDescs[fields[0]]; ok && len(fields) == 2 {
// Traffic counters.