]> Git repositories of Nishi - koakuma.git/commitdiff
fix number on successful builds
authorNishi <nishi@nishi.boats>
Thu, 3 Oct 2024 05:17:31 +0000 (05:17 +0000)
committerNishi <nishi@nishi.boats>
Thu, 3 Oct 2024 05:17:31 +0000 (05:17 +0000)
git-svn-id: file:///raid/svn-personal/koakuma/trunk@45 219d0f9c-2d94-d447-890a-813e76b88fe9

koakuma.cgi.in

index 890372fe9e6ac0bf452d72e795178dcb7b39db41..567dc8eb0882cb0c647111f9b5fc1aeb697c7e32 100644 (file)
@@ -705,8 +705,8 @@ if { [catch {
                                        tputs   "               <td>"
                                        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   "                       "