Update of /cvsroot/compbench/compbenchmarks-web/tools
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv3751
Modified Files:
compbenchmarks-heartbeat.pl
Log Message:
Updates the news file each 24h.
Index: compbenchmarks-heartbeat.pl
===================================================================
RCS file: /cvsroot/compbench/compbenchmarks-web/tools/compbenchmarks-heartbeat.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** compbenchmarks-heartbeat.pl 28 Nov 2005 18:28:10 -0000 1.9
--- compbenchmarks-heartbeat.pl 29 Nov 2006 19:17:15 -0000 1.10
***************
*** 17,20 ****
--- 17,23 ----
require "session.pl";
require "update.pl";
+ require "news.pl";
+
+ our $NEWS_FILE;
config_read("../etc/compbenchmarks-web.conf");
***************
*** 39,43 ****
foreach(@rem) {
my $d;
!
my (@el) = stat("$LT_TMP_DIR/$_");
$d=$t-$el[9];
--- 42,48 ----
foreach(@rem) {
my $d;
! if ($_ eq $NEWS_FILE) {
! next;
! }
my (@el) = stat("$LT_TMP_DIR/$_");
$d=$t-$el[9];
|