From f116d073113d85e4c12854d901c3574ce0947acd Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Thu, 1 Jul 2021 22:25:57 +0200 Subject: [PATCH] use floats for percentage --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 333f34f..c6145b8 100644 --- a/main.go +++ b/main.go @@ -658,7 +658,7 @@ func (b *BuildManager) syncWorker() { } b.parseWG.Wait() - log.Infof("Processed source-repos. %d packages elegible to be build, %d already fully build. Covering %f of offical-repo (buildable) packages.", b.stats.eligible, b.stats.fullyBuild, b.stats.fullyBuild/b.stats.eligible) + log.Infof("Processed source-repos. %d packages elegible to be build, %d already fully build. Covering %f of offical-repo (buildable) packages.", b.stats.eligible, b.stats.fullyBuild, float32(b.stats.fullyBuild)/float32(b.stats.eligible)*100.0) b.stats.fullyBuild = 0 b.stats.eligible = 0 time.Sleep(5 * time.Minute)