Skip Menu |

This queue is for tickets about the RRD-Editor CPAN distribution.

Report information
The Basics
Id: 80189
Status: resolved
Priority: 0/
Queue: RRD-Editor

People
Owner: Nobody in particular
Requestors: maxim.basunov [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.12
Fixed in: (no value)



Subject: add_DS does not accept negative value for 'min'
Source code uses regex to match only digits (positive integer or zero): sub add_DS { # add a new DS. argument is is same format as used by create my ($self, $arg) = @_; my $rrd=$self->{rrd}; if ($arg !~ m/^DS:([a-zA-Z0-9_\-]+):(GAUGE|COUNTER|DERIVE|ABSOLUTE): ([0-9]+):(U|[0-9\.]+):(U|[0-9\.]+)$/) { croak("Invalid DS spec\n");} But RRD is able to specify/use negative values in DS min/max (such as temperature as sample). How to reproduce: my $rrde = RRD::Editor->new(); $rrde->open('exists rrd file'); $rrde->add_DS('DS:temp:ABSOLUTE:120:-60:+60'); Result: Invalid DS spec Expected result: Successfully altered RRD
Thanks, I'll get this fixed.
Fixed in latest version 0.14.
From: maxim.basunov [...] gmail.com
Вск Окт 21 14:48:40 2012, DOUGLEITH писал: Show quoted text
> Fixed in latest version 0.14.
Thank you. Confirm as solved.
Marking as resolved.