[rt-users] RTx::Statistics V1.7 Fixes

Nick Metrowsky nmetrowsky at digitalglobe.com
Tue Jan 3 13:32:25 EST 2006


Hi Everyone,

 

Las Friday, I sent out a patch to RTx::Statis V1.7. After I sent out the
patch, I found another errors that was giving incorrect results. So,
below are the two patches I made to the software. FYI, the second patch
combines a previous patch submitted by another contributor to this list.

 

Take care!

 

Nick

 

 

/opt/rt3/share/html/RTx/Statistics/CallsMultiQueues/index.html:

 

57c57

< %     elsif ($status eq "created") {

---

> %     elsif ($status eq "new") {

76a77,90

> %     elsif ($status eq "open") {

> %       $tix->LimitStatus(VALUE => $status);

> %       $tix->LimitLastUpdated(VALUE => $dates[$d]->ISO, OPERATOR =>
">=");

> %       if ($dates[$d+1]) {

> %         $tix->LimitLastUpdated(VALUE => $dates[$d+1]->ISO, OPERATOR
=> "<=");

> %       }

> %     }

> %     elsif ($status eq "rejected") {

> %       $tix->LimitStatus(VALUE => $status);

> %       $tix->LimitLastUpdated(VALUE => $dates[$d]->ISO, OPERATOR =>
">=");

> %       if ($dates[$d+1]) {

> %         $tix->LimitLastUpdated(VALUE => $dates[$d+1]->ISO, OPERATOR
=> "<=");

> %       }

> %     }

95c109

< % for (qw(resolved created deleted stalled)) {

---

> % for (qw(resolved new deleted stalled rejected open)) {

 

/opt/rt3/share/html/RTx/Statistics/DayOfWeek/index.html:

 

35c35

< %     $values{Statistics_Created_Count} = $counts[$d]{created};

---

> %     $values{Statistics_Created_Count} = $counts[$d]{new};

42c42

< % $values {Statistics_Created_Count} = $Totals{created};

---

> % $values {Statistics_Created_Count} = $Totals{new};

62c62

< my @things = qw(created resolved deleted);

---

> my @things = qw(new resolved deleted);

107c107

<   created => 0

---

>   new => 0

140c140

<         $counts[$day]{created} = 0;

---

>         $counts[$day]{new} = 0;

146,153d145

<      } else {

<        if($t->Status eq "deleted") {

<          $counts[(localtime($t->LastUpdatedObj->Unix))[6]]{deleted}++;

<          $Totals{deleted}++;

<        } else {

<          $counts[(localtime($t->CreatedObj->Unix))[6]]{created}++;

<          $Totals{created}++;

<        }

155c147,153

<     }

---

>      if($t->Status eq "deleted") {

>        $counts[(localtime($t->LastUpdatedObj->Unix))[6]]{deleted}++;

>        $Totals{deleted}++;

>      }

>      $counts[(localtime($t->CreatedObj->Unix))[6]]{new}++;

>      $Totals{new}++;

>      }

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20060103/8823fede/attachment.htm>


More information about the rt-users mailing list