[Orca-users] Re: Daily Graphics
Blair Zajac
blair at orcaware.com
Thu Oct 17 14:07:15 PDT 2002
Edgard Dapás wrote:
>
> Hi !!!
>
> I'm wondering if there is any way to change the daily graphics, now you can
> see the last 32 hours in the gif, and i want to reduce this graphics to the
> last 12 Hours
>
> Thanks
Yes, edit
lib/Orca/Constants.pm.
Start at the top and read down to
use vars qw(@CONST_IMAGE_PLOT_TYPES %CONST_IMAGE_PLOT_INFO);
push(@EXPORT_OK, qw(@CONST_IMAGE_PLOT_TYPES %CONST_IMAGE_PLOT_INFO));
BEGIN {
@CONST_IMAGE_PLOT_TYPES = qw(hourly daily weekly monthly quarterly yearly);
%CONST_IMAGE_PLOT_INFO =
('hourly' => [$RRA_PDP_COUNTS[0], 1.5*60*60], # 18 data points
'daily' => [$RRA_PDP_COUNTS[0], 1.5*DAY_SECONDS], # 432 data points
'weekly' => [$RRA_PDP_COUNTS[1], 10 *DAY_SECONDS], # 480 data points
'monthly' => [$RRA_PDP_COUNTS[2], 40 *DAY_SECONDS], # 480 data points
'quarterly' => [$RRA_PDP_COUNTS[3], 100 *DAY_SECONDS], # 100 data points
'yearly' => [$RRA_PDP_COUNTS[3], 428 *DAY_SECONDS]); # 428 data points
# Ensure that the number of elements of @CONST_IMAGE_PLOT_TYPES
# exactly matches the keys of %CONST_IMAGE_PLOT_INFO.
unless (@CONST_IMAGE_PLOT_TYPES == keys %CONST_IMAGE_PLOT_INFO) {
die "$0: internal error: number of elements in ",
"\@CONST_IMAGE_PLOT_TYPES does not match number of keys in ",
"\%CONST_IMAGE_PLOT_INFO.\n";
}
foreach my $title (@CONST_IMAGE_PLOT_TYPES) {
unless (defined $CONST_IMAGE_PLOT_INFO{$title}) {
die "$0: internal error: element `$title' in ",
"\@CONST_IMAGE_PLOT_TYPES is not a key in ",
"\%CONST_IMAGE_PLOT_INFO.\n";
}
}
}
Best,
Blair
--
Blair Zajac <blair at orcaware.com>
Web and OS performance plots - http://www.orcaware.com/orca/
More information about the Orca-users
mailing list