Skip to content

Aggregate graphs get clipped due to incorrect date range #2848

@jav4

Description

@jav4

Due to an error in step calculation, some aggregated graphs get a part of them clipped. Fix is very simple (patch included).

rrd.patch.txt

--- rrd.php.OLD	2019-07-27 13:46:43.387895819 +0200
+++ rrd.php	2019-07-27 13:47:04.100010947 +0200
@@ -2458,7 +2458,7 @@
 			if (cacti_sizeof($data_source_info)) {
 				foreach($data_source_info as $resolution) {
 					if ($graph_start > ($time - ($resolution['step'] * $resolution['steps'] * $resolution['rows']))) {
-						if ($type = 'res') {
+						if ($type == 'res') {
 							return $resolution['step'] * $resolution['steps'];
 						} else {
 							return $resolution['step'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions