Use the right timezone for the timestamps in the client stats.
This commit is contained in:
1 parent
09ca7de8c1
commit
21715e2dc3
1 file changed
+1
-1
+1
-1
@@ -183,7 +183,7 @@ func CollectClientStatusFromReader(statusPath string, file io.Reader, ch chan<-
|
|||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
openvpnStatusUpdateTimeDesc,
|
openvpnStatusUpdateTimeDesc,
|
||||||
prometheus.GaugeValue,
|
prometheus.GaugeValue,
|
||||||
float64(time.Unix()),
|
float64(time.Local().Unix()),
|
||||||
statusPath)
|
statusPath)
|
||||||
} else if desc, ok := openvpnClientDescs[fields[0]]; ok && len(fields) == 2 {
|
} else if desc, ok := openvpnClientDescs[fields[0]]; ok && len(fields) == 2 {
|
||||||
// Traffic counters.
|
// Traffic counters.
|
||||||
|
|||||||
Reference in new issue
Block a user