From 643cfe2e98fe27eca0bc533f29aecaa711d896de Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Sun, 30 Dec 2018 21:57:41 +0100 Subject: [PATCH] lib/config: Revert #5415 (#5417) This reverts commit 9d075781add838200cb1e50537aa48d3ac1916f4: "cmd/syncthing: Improve messages when free space is running out (#5415)" --- lib/config/size.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/size.go b/lib/config/size.go index 9d659cbf9..20c3f38d1 100644 --- a/lib/config/size.go +++ b/lib/config/size.go @@ -85,10 +85,10 @@ func checkFreeSpace(req Size, usage fs.Usage) error { if req.Percentage() { freePct := (float64(usage.Free) / float64(usage.Total)) * 100 if freePct < val { - return fmt.Errorf("not enough free space, %f %% < %v", freePct, req) + return fmt.Errorf("%f %% < %v", freePct, req) } } else if float64(usage.Free) < val { - return fmt.Errorf("not enough free space, %v < %v", usage.Free, req) + return fmt.Errorf("%v < %v", usage.Free, req) } return nil