reset hasReboot when checking aliveCount

This commit is contained in:
Aaron Bieber 2023-03-06 09:00:19 -07:00
parent 314df9c4d1
commit 5caee7d0a1
No known key found for this signature in database

View File

@ -106,6 +106,7 @@ func trim(b []byte) string {
func (x *xinStatus) aliveCount() float64 { func (x *xinStatus) aliveCount() float64 {
alive := 0 alive := 0
x.hasReboot = false
for _, s := range x.config.Statuses { for _, s := range x.config.Statuses {
if s.clientEstablished { if s.clientEstablished {
alive = alive + 1 alive = alive + 1