Skip to content

Commit

Permalink
Fix server certs expire metrics math
Browse files Browse the repository at this point in the history
  • Loading branch information
pashcovich committed Nov 27, 2020
1 parent 8d82c43 commit 0af5fc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ func (oAdmin *OpenvpnAdmin) setState() {
oAdmin.activeClients = oAdmin.mgmtGetActiveClients()
oAdmin.clients = oAdmin.usersList()

ovpnServerCaCertExpire.Set(float64(getOpvnCaCertExpireDate().Unix() - time.Now().Unix() / 3600 / 24))
ovpnServerCaCertExpire.Set(float64((getOpvnCaCertExpireDate().Unix() - time.Now().Unix()) / 3600 / 24))
}

func (oAdmin *OpenvpnAdmin) updateState() {
Expand Down

0 comments on commit 0af5fc3

Please sign in to comment.