#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_debian-patch.dpatch by Christian Marillat <marillat@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: New patch generated from cricket 1.0.5-4 diff.gz

@DPATCH@

--- cricket-1.0.5.orig/lib/RRD/File.pm	2006-05-04 14:00:17.000000000 +0200
+++ cricket-1.0.5/lib/RRD/File.pm	2006-05-04 14:00:44.000000000 +0200
@@ -196,7 +196,7 @@
     {
         my ($block);
         my ($last_up, $last_up_usec);
-        if ($v eq "0001" || $v eq "0002") {
+        if ($v eq "0001" || $v eq "0002" || $v eq "0003") {
            $block = $self->_readNextBlock(sizeof($fmt->format('liveHead')));
            croak("Could not read live header") unless (defined($block));
            $last_up = unpack($fmt->format('liveHead'), $block);
