fix
This commit is contained in:
parent
5091a1018c
commit
568ac634bb
1
sm.go
1
sm.go
|
@ -45,7 +45,6 @@ func NewSMQueue(shardID uint64, replicaID uint64) sm.IStateMachine {
|
||||||
// totalAllocMB := float64(m.TotalAlloc) / 1024 / 1024
|
// totalAllocMB := float64(m.TotalAlloc) / 1024 / 1024
|
||||||
sysMB := float64(m.Sys) / 1024 / 1024
|
sysMB := float64(m.Sys) / 1024 / 1024
|
||||||
fmt.Printf("队列 剩余: %d, Alloc = %.2f MB, Sys = %.2f MB\n", params.Value, allocMB, sysMB)
|
fmt.Printf("队列 剩余: %d, Alloc = %.2f MB, Sys = %.2f MB\n", params.Value, allocMB, sysMB)
|
||||||
time.Sleep(time.Second * 1)
|
|
||||||
} else {
|
} else {
|
||||||
time.Sleep(time.Second * 5)
|
time.Sleep(time.Second * 5)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user