summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-02-10 06:13:49 +0000
committerfukachan <fukachan>2001-02-10 06:13:49 +0000
commitae6484547f897b6cecf77175b7ea9b133b6a7c46 (patch)
treea50d00702f79d02a59af35338f5a99e0a119e8aa
parent8a2971205cd3651a58130c353dbf7b3268c3d95e (diff)
downloadfml8-ae6484547f897b6cecf77175b7ea9b133b6a7c46.tar.gz
fml8-ae6484547f897b6cecf77175b7ea9b133b6a7c46.tar.bz2
fml8-ae6484547f897b6cecf77175b7ea9b133b6a7c46.zip
clean up
-rw-r--r--fml/lib/FML/Ticket/Model/toymodel.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/fml/lib/FML/Ticket/Model/toymodel.pm b/fml/lib/FML/Ticket/Model/toymodel.pm
index 0ad6b9a4..08997bd5 100644
--- a/fml/lib/FML/Ticket/Model/toymodel.pm
+++ b/fml/lib/FML/Ticket/Model/toymodel.pm
@@ -455,11 +455,11 @@ sub show_summary
# self->{ _hash_table } is tied to DB's.
$self->open_db($curproc, $args);
- # XXX $rh = Reference to Hash table, which is tied to db_dir/*db's
- my $rh = $self->{ _hash_table };
- my $rh_status = $rh->{ _status };
+ # rh: Reference to Hash table, which is tied to db_dir/*db's
+ my $rh_status = $self->{ _hash_table }->{ _status };
my $mode = $args->{ mode } || 'default';
+ # @ticket_id ARRAY
TICEKT_LIST:
while (($tid, $status) = each %$rh_status) {
if ($mode eq 'default') {
@@ -469,9 +469,11 @@ sub show_summary
push(@ticket_id, $tid);
}
- my $age = $self->_calculate_age($curproc, $args, \@ticket_id);
+ # age HASH TABLE
+ my $rh_age = $self->_calculate_age($curproc, $args, \@ticket_id);
- $self->_simple_print($curproc, $args, \@ticket_id, $age);
+ # print out
+ $self->_simple_print($curproc, $args, \@ticket_id, $rh_age);
# self->{ _hash_table } is untied from DB's.
$self->close_db($curproc, $args);