[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GT] SVN Commit r596 - trunk/Scripts
Author: thomas
Date: 2008-03-30 06:28:25 +0200 (Sun, 30 Mar 2008)
New Revision: 596
Modified:
trunk/Scripts/display_indicator.pl
Log:
Add support for --last-record
Modified: trunk/Scripts/display_indicator.pl
===================================================================
--- trunk/Scripts/display_indicator.pl 2008-03-30 04:09:02 UTC (rev 595)
+++ trunk/Scripts/display_indicator.pl 2008-03-30 04:28:25 UTC (rev 596)
@@ -76,10 +76,11 @@
# Il faut cr� tout le framework
my $indicator_name = $indicator->get_name;
-my ($calc, $first, $last) = find_calculator($code, $timeframe, $full, $start, $end, 200, $nb_item);
-# NOTE: above does not handle $last_record
-# $first = $last if ($last_record);
+my ($calc, $first, $last) = ($last_record) ?
+ find_calculator($code, $timeframe, 0, '', '', 1, $nb_item) :
+ find_calculator($code, $timeframe, $full, $start, $end, 200, $nb_item);
+
# Au boulot
print "Calculating indicator $indicator_name ...\n";
$indicator->calculate_interval($calc, $first, $last);