mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-24 18:59:34 +08:00
comment change: 3 times of the pulse
This commit is contained in:
parent
01f2fcf72d
commit
ccab4217e4
@ -10,7 +10,7 @@ import (
|
||||
func (t *Topology) StartRefreshWritableVolumes() {
|
||||
go func() {
|
||||
for {
|
||||
freshThreshHold := time.Now().Unix() - 3*t.pulse //5 times of sleep interval
|
||||
freshThreshHold := time.Now().Unix() - 3*t.pulse //3 times of sleep interval
|
||||
t.CollectDeadNodeAndFullVolumes(freshThreshHold, t.volumeSizeLimit)
|
||||
time.Sleep(time.Duration(float32(t.pulse*1e3)*(1+rand.Float32())) * time.Millisecond)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user