Cricket support for x86_64

It looks like Cricket, by default, does not support printing the summary information from the RRD files when displaying the graphs. A quick patch to lib/RRD/Format.pm fixes that:

— Format.pm.orig 2008-03-24 14:08:28.000000000 -0400
+++ Format.pm 2008-03-24 14:08:59.000000000 -0400
@@ -128,6 +128,16 @@
$self->{‘element’} = “d”;

return 1;
+ } elsif ( $archname =~ /^x86_64-linux/ ) {
+ $self->{‘statHead’} = “a4 a5 x7 d Q Q Q x80”;
+ $self->{‘dsDef’} = “a20 a20 L x4 d d x56”;
+ $self->{‘rraDef’} = “a20 L L d x72”;
+ $self->{‘pdpDef’} = “a30 x2 L x4 d x64”;
+ $self->{‘cdpDef’} = “d L x4 x64”;
+ $self->{‘liveHead’} = “Q”;
+ $self->{‘liveHead3’} = “Q Q”;
+ $self->{‘rraPtr’} = “L”;
+ $self->{‘element’} = “d”;
} elsif ( $archname eq ‘alpha-dec_osf’) {
# Thanks to Melissa D. Binde <binde@amazon.com> for
# finding this (and a major foobar in getFormat.c)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.