From 8f1208cef6275b65cfb52b4adc3047d49650452c Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 23 Nov 2006 03:56:25 +0000 Subject: [PATCH] minor update to ADMIN_adjust_GMTnow git-svn-id: svn://192.168.202.10@406 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_adjust_GMTnow_on_leads.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/agc_2-X/trunk/bin/ADMIN_adjust_GMTnow_on_leads.pl b/agc_2-X/trunk/bin/ADMIN_adjust_GMTnow_on_leads.pl index d37bb97d..4df0eeeb 100644 --- a/agc_2-X/trunk/bin/ADMIN_adjust_GMTnow_on_leads.pl +++ b/agc_2-X/trunk/bin/ADMIN_adjust_GMTnow_on_leads.pl @@ -395,13 +395,13 @@ foreach (@phone_codes) if (!$rec_countW) { - if ($DB) {print " ALL GMT ALREADY CORRECT FOR : $match_code_ORIG $area_code $area_GMT\n";} + if ($DBX) {print " ALL GMT ALREADY CORRECT FOR : $match_code_ORIG $area_code $area_GMT\n";} $ei++; } else { $stmtA = "update vicidial_list set gmt_offset_now='$area_GMT' where phone_code='$match_code_ORIG' $AC_match and gmt_offset_now != '$area_GMT';"; - if($DB){print STDERR "\n|$stmtA|\n";} + if($DBX){print STDERR "\n|$stmtA|\n";} if (!$T) { $affected_rows = $dbhA->do($stmtA); @@ -556,13 +556,13 @@ foreach (@phone_codes) if (!$rec_countW) { - if ($DB) {print " ALL GMT ALREADY CORRECT FOR : $match_code_ORIG $postal_code $area_GMT\n";} + if ($DBX) {print " ALL GMT ALREADY CORRECT FOR : $match_code_ORIG $postal_code $area_GMT\n";} $ei++; } else { $stmtA = "update vicidial_list set gmt_offset_now='$area_GMT' where phone_code='$match_code_ORIG' $AC_match and gmt_offset_now != '$area_GMT';"; - if($DB){print STDERR "\n|$stmtA|\n";} + if($DBX){print STDERR "\n|$stmtA|\n";} if (!$T) { $affected_rows = $dbhA->do($stmtA); @@ -597,6 +597,8 @@ $dbhA->disconnect(); if($DB){print "Postal Updates: $postal_updated_count\n";} if($DB){print "Area Code Updates: $area_updated_count\n";} if($DB){print "\nDONE\n";} +$secy = time(); $secz = ($secy - $secX); $minz = ($secz/60); # calculate script runtime so far +print "\n - process runtime ($secz sec) ($minz minutes)\n"; exit;