From e1126c71a35c4a0d9306f86fac29c8506cd81d38 Mon Sep 17 00:00:00 2001 From: Nishi Date: Wed, 2 Oct 2024 06:41:51 +0000 Subject: [PATCH] works git-svn-id: file:///raid/svn-personal/koakuma/trunk@14 219d0f9c-2d94-d447-890a-813e76b88fe9 --- cgi.conf | 1 + koakuma.cgi.in | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/cgi.conf b/cgi.conf index 05c06e1..62fad4d 100644 --- a/cgi.conf +++ b/cgi.conf @@ -3,3 +3,4 @@ set koakuma_png "/static/koakuma.png" set css "/static/style.css" +set running_png "/static/continued.png" diff --git a/koakuma.cgi.in b/koakuma.cgi.in index 5ff49c2..6eeb7b2 100644 --- a/koakuma.cgi.in +++ b/koakuma.cgi.in @@ -626,6 +626,25 @@ if { [catch { tputs " " tputs " " tputs " " + tputs " Status" + tputs " " + tputs " " + if { [file exists "@@PREFIX@@/lib/koakuma/db/data/$projname/build.lock"] } { + set fid [open "@@PREFIX@@/lib/koakuma/db/data/$projname/build.loc" "r"] + if { [file exists "/proc/[gets $fid]"] } { + tputs "Running" + } else { + tputs "Idle" + } + close $fid + } else { + tputs "Idle" + } + tputs " " + tputs " " + tputs " " + tputs " " + tputs " " tputs " Last successful run" tputs " " tputs " " -- 2.45.2