Changes in directory nightlytest-serverside:
NightlyTestAccept.cgi updated: 1.25 -> 1.26 --- Log message: Changed the call to the function that updates teh lines of code in the databaes to be the correct function --- Diffs of the changes: (+9 -26) NightlyTestAccept.cgi | 35 +++++++++-------------------------- 1 files changed, 9 insertions(+), 26 deletions(-) Index: nightlytest-serverside/NightlyTestAccept.cgi diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.25 nightlytest-serverside/NightlyTestAccept.cgi:1.26 --- nightlytest-serverside/NightlyTestAccept.cgi:1.25 Fri Jul 21 17:00:17 2006 +++ nightlytest-serverside/NightlyTestAccept.cgi Fri Jul 21 19:48:11 2006 @@ -56,25 +56,6 @@ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # -# Checks to see if our information about the llvm code base is different -# from the last update and if so, adds the information to the database -# -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -sub CheckCodeBase{ #(added, lines of code, files, directories) - my $d = $dbh->prepare("SELECT * FROM code ORDER BY added DESC"); - $d->execute; - $row=$d->fetchrow_hashref; - if(%$row && ($row->{'loc'} != $_[1] || - $row->{'files'} != $_[2] || - $row->{'dirs'} != $_[3])){ - my $e = $dbh->prepare("insert into code (added, loc, files, dirs) ". - "values (\"$_[0]\", $_[1], $_[2], $_[3])"); - $e->execute; - } -} - -#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# # Queries database to see if there is a machine with the same uname as # the value passed in # @@ -384,15 +365,16 @@ # #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sub UpdateCodeInfo{ #date, loc, files, dirs - - my $d = $dbh->prepare("select * from code ORDER BY added DESC"); + my $d = $dbh->prepare("SELECT * FROM code ORDER BY added DESC"); $d->execute; - $row = $d->fetchrow_hashref; - if(!$row || ($row->{'loc'} != $_[1] || $row->{'files'} != $_[2] || $row->{'dirs'} != $_[3])){ - my $e = $dbh->prepare("insert into code (added, loc, files, dirs) values (\"$_[0]\", $_[1], $_[2], $_[3])"); - $e->execute; + $row=$d->fetchrow_hashref; + if(%$row && ($row->{'loc'} != $_[1] || + $row->{'files'} != $_[2] || + $row->{'dirs'} != $_[3])){ + my $e = $dbh->prepare("insert into code (added, loc, files, dirs) ". + "values (\"$_[0]\", $_[1], $_[2], $_[3])"); + $e->execute; } - } ################################################################################ @@ -586,6 +568,7 @@ #$db_date = $date." ".$time; $db_date = `date "+20%y-%m-%d %H:%M:%S"`; +chomp(+$db_date); $night_id= CreateNight $machine_id, $db_date, $buildstatus, $configtime_cpu, $configtime_wall, $cvscheckouttime_cpu, $cvscheckouttime_wall, $buildtime_cpu, $buildtime_wall, _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits