Skip to content

When using shift functions on graphs, negative values are not allowed #3874

@DebugBill

Description

@DebugBill

When using the "shift data" option for a graph item, negative values if entered are ignored. Still they are valid in RDDTOOL and work fine.

In order to fix this bug I only replaced in 4 places in lib/rrd.php
if ($graph_item['shift'] == CHECKED && $graph_item['value'] > 0)
with
if ($graph_item['shift'] == CHECKED && abs($graph_item['value']) > 0)

Fixed file is attached, renamed to rrd.php.txt

rrd.php.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions