From ccab4217e4aea86d5db02606f62437783c0c1cec Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 11 Nov 2012 22:37:12 -0800 Subject: [PATCH] comment change: 3 times of the pulse --- weed-fs/src/pkg/topology/topology_event_handling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed-fs/src/pkg/topology/topology_event_handling.go b/weed-fs/src/pkg/topology/topology_event_handling.go index 0ede2ba1e..230ea1071 100644 --- a/weed-fs/src/pkg/topology/topology_event_handling.go +++ b/weed-fs/src/pkg/topology/topology_event_handling.go @@ -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) }