From 8de306567fd7165858961130e7a3ab97349f6d19 Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 3 Oct 2024 05:17:31 +0000 Subject: [PATCH] fix number on successful builds git-svn-id: file:///raid/svn-personal/koakuma/trunk@45 219d0f9c-2d94-d447-890a-813e76b88fe9 --- koakuma.cgi.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koakuma.cgi.in b/koakuma.cgi.in index 890372f..567dc8e 100644 --- a/koakuma.cgi.in +++ b/koakuma.cgi.in @@ -705,8 +705,8 @@ if { [catch { tputs " " if { [file exists "@@PREFIX@@/lib/koakuma/db/data/$projname/successbuild"] } { set fid [open "@@PREFIX@@/lib/koakuma/db/data/$projname/successbuild" "r"] - set sucbui "[gets $fid].0" - tputs "[format %.2f [expr $sucbui / [llength $builds] * 100]]% ($sucbui/[llength $builds])" + set sucbui "[gets $fid]" + tputs "[format %.2f [expr ${sucbui}.0 / [llength $builds] * 100]]% ($sucbui/[llength $builds])" close $fid } tputs " " -- 2.45.2