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

Kelly F. Hickel kfh at mqsoftware.com
Tue Jan 3 14:19:48 EST 2006


Nick's changes from this email will be in 0.1.8, can't promise when that
will be available, but might be today or tomorrow.....

 

-- 

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh at mqsoftware.com

  _____  

From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Nick
Metrowsky
Sent: Tuesday, January 03, 2006 12:32 PM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] RTx::Statistics V1.7 Fixes

 

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/5dcc6571/attachment.htm>


More information about the rt-users mailing list