From dd40a17476ede19c88187224e41d8eb3937af581 Mon Sep 17 00:00:00 2001 From: zzjc1234 <2359047351@qq.com> Date: Sat, 12 Oct 2024 17:59:26 +0800 Subject: [PATCH] fix(healthcheck/reposize): output format --- pkg/healthcheck/reposize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/healthcheck/reposize.go b/pkg/healthcheck/reposize.go index ee61bba..58820eb 100644 --- a/pkg/healthcheck/reposize.go +++ b/pkg/healthcheck/reposize.go @@ -34,7 +34,7 @@ func RepoSize(conf_size float64) error { } } if sum > int(conf_size*1024) { - return fmt.Errorf("Repository larger than %f M. Please clean up or contact the teaching team.", conf_size) + return fmt.Errorf("Repository larger than %.1f Mib. Please clean up or contact the teaching team.", conf_size) } return nil }