aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-07-30 16:43:14 -0700
committerchrislu <chris.lu@gmail.com>2025-07-30 16:43:14 -0700
commitf5c53b1bd8e086d01394125c84e5ea868a650849 (patch)
tree76763fd93b05b42b8215b72b2360ccbb1605b6ac
parent5a4067d36e60e7f1309228d7bfd7a14d11b18670 (diff)
downloadseaweedfs-f5c53b1bd8e086d01394125c84e5ea868a650849.tar.xz
seaweedfs-f5c53b1bd8e086d01394125c84e5ea868a650849.zip
fix reason display
-rw-r--r--weed/worker/tasks/erasure_coding/detection.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/worker/tasks/erasure_coding/detection.go b/weed/worker/tasks/erasure_coding/detection.go
index 1a2558396..450080a12 100644
--- a/weed/worker/tasks/erasure_coding/detection.go
+++ b/weed/worker/tasks/erasure_coding/detection.go
@@ -64,9 +64,9 @@ func Detection(metrics []*types.VolumeHealthMetrics, clusterInfo *types.ClusterI
Server: metric.Server,
Collection: metric.Collection,
Priority: types.TaskPriorityLow, // EC is not urgent
- Reason: fmt.Sprintf("Volume meets EC criteria: quiet for %.1fs (>%ds), fullness=%.1f%% (>%.1f%%), size=%.1fMB (>100MB)",
+ Reason: fmt.Sprintf("Volume meets EC criteria: quiet for %.1fs (>%ds), fullness=%.1f%% (>%.1f%%), size=%.1fMB (>%dMB)",
metric.Age.Seconds(), ecConfig.QuietForSeconds, metric.FullnessRatio*100, ecConfig.FullnessRatio*100,
- float64(metric.Size)/(1024*1024)),
+ float64(metric.Size)/(1024*1024), ecConfig.MinSizeMB),
ScheduleAt: now,
}
results = append(results, result)