[sr-dev] git:master: modules:sipcapture fixed duplicate value

Alexandr Dubovikov alexandr.dubovikov at gmail.com
Wed Sep 10 22:26:34 CEST 2014


Module: sip-router
Branch: master
Commit: 975288957ae47e2bcf3472780fe4f085605297fa
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=975288957ae47e2bcf3472780fe4f085605297fa

Author: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Committer: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Date:   Wed Sep 10 22:25:56 2014 +0200

modules:sipcapture fixed duplicate value

---

 .../examples/partrotate_unixtimestamp.pl           |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/modules/sipcapture/examples/partrotate_unixtimestamp.pl b/modules/sipcapture/examples/partrotate_unixtimestamp.pl
index de6737b..cda5518 100644
--- a/modules/sipcapture/examples/partrotate_unixtimestamp.pl
+++ b/modules/sipcapture/examples/partrotate_unixtimestamp.pl
@@ -91,7 +91,6 @@ $query = "SELECT PARTITION_NAME, PARTITION_DESCRIPTION"
 $sth = $db->prepare($query);
 $sth->execute();
 my @oldparts;
-my $newparts = 0;
 my @partsremove;
 while(my @ref = $sth->fetchrow_array())
 {
@@ -103,7 +102,6 @@ while(my @ref = $sth->fetchrow_array())
       
    if($curtstamp <= $todaytstamp) { 
           $PARTS{$minpart."_".$todaytstamp} = 1;
-          $newparts++;
    }
    else { push(@oldparts, \@ref); }
    




More information about the sr-dev mailing list