1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00

Fix server certs expire metrics math

This commit is contained in:
Ilya Sosnovsky 2020-11-27 12:00:03 +03:00
parent 8d82c43fa2
commit 0af5fc3622

View file

@ -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() {