Fix server certs expire metrics math
This commit is contained in:
parent
8d82c43fa2
commit
0af5fc3622
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -415,7 +415,7 @@ func (oAdmin *OpenvpnAdmin) setState() {
|
||||||
oAdmin.activeClients = oAdmin.mgmtGetActiveClients()
|
oAdmin.activeClients = oAdmin.mgmtGetActiveClients()
|
||||||
oAdmin.clients = oAdmin.usersList()
|
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() {
|
func (oAdmin *OpenvpnAdmin) updateState() {
|
||||||
|
|
Loading…
Reference in a new issue