reset hasReboot when checking aliveCount
This commit is contained in:
parent
314df9c4d1
commit
5caee7d0a1
1
main.go
1
main.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user