Skip to content

Commit

Permalink
Fix percentile calculation (#2720)
Browse files Browse the repository at this point in the history
The percentile calculation sorting ends up using incorrect step length due to incorrect sorting. I'm not actually 100% sure what the intended behavior here is, so I left it as sorting by step first, and steps second, though on my graphs steps seems to work just fine.
  • Loading branch information
TheBlueMatt authored and netniV committed Jun 7, 2019
1 parent 56571d6 commit 0dcf153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rrd.php
Original file line number Diff line number Diff line change
Expand Up @@ -2454,7 +2454,7 @@ function rrdtool_function_get_resstep($local_data_ids, $graph_start, $graph_end,
INNER JOIN data_template_data AS dtd
ON dtd.data_source_profile_id=dsp.id
WHERE dtd.local_data_id = ?
ORDER BY step ASC',
ORDER BY step, steps ASC',
array($local_data_id));

if (cacti_sizeof($data_source_info)) {
Expand Down

0 comments on commit 0dcf153

Please sign in to comment.