Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

Commit

Permalink
Use the right timezone for the timestamps in the client stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdSchouten committed Mar 21, 2017
1 parent 09ca7de commit 21715e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvpn_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 21715e2

Please sign in to comment.