[or-cvs] r16004: (ticket:105) Rewriting SQL command to use on GMT  (torstatus/trunk)
    kasimir at seul.org 
    kasimir at seul.org
       
    Thu Jul 17 02:52:12 UTC 2008
    
    
  
Author: kasimir
Date: 2008-07-16 22:52:11 -0400 (Wed, 16 Jul 2008)
New Revision: 16004
Modified:
   torstatus/trunk/tns_update.pl
Log:
(ticket:105) Rewriting SQL command to use on GMT
Modified: torstatus/trunk/tns_update.pl
===================================================================
--- torstatus/trunk/tns_update.pl	2008-07-17 02:35:17 UTC (rev 16003)
+++ torstatus/trunk/tns_update.pl	2008-07-17 02:52:11 UTC (rev 16004)
@@ -852,7 +852,7 @@
 my $end_time = time();
 
 # Set the status to use the new data
-$dbh->do("UPDATE Status SET LastUpdate = now(), LastUpdateElapsed = ($end_time-$start_time), ActiveNetworkStatusTable = 'NetworkStatus${descriptorTable}', ActiveDescriptorTable = 'Descriptor${descriptorTable}' WHERE ID = 1;");
+$dbh->do("UPDATE Status SET LastUpdate = UTC_TIMESTAMP(), LastUpdateElapsed = ($end_time-$start_time), ActiveNetworkStatusTable = 'NetworkStatus${descriptorTable}', ActiveDescriptorTable = 'Descriptor${descriptorTable}' WHERE ID = 1;");
 
 # Rename the DNSEL table so it is used
 $dbh->do("RENAME TABLE DNSEL TO tmp_table, DNSEL_INACT TO DNSEL, tmp_table TO DNSEL_INACT;");
    
    
More information about the tor-commits
mailing list