About 95th variable increase parameter

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
hongtaoyingying
Posts: 1
Joined: Thu Aug 20, 2020 5:47 am

About 95th variable increase parameter

Post by hongtaoyingying »

Version 0.8.8a

Nth Percentile
|[0-9]:(bits|bytes):[0-9]:(current|total|max|total_peak|all_max_current|all_max_peak|aggregate_max|aggregate_sum|aggregate_current|aggregate):[0-9]|

I want to add a parameter to this variable to achieve the purpose of custom computing

But if you change the regular expression below, the graphics will be wrong

Where else should I modify?


rrd.php:
if (preg_match_all("/\|([0-9]{1,2}):(bits|bytes):(\d):(current|total|max|total_peak|all_max_current|all_max_peak|aggregate_max|aggregate_sum|aggregate_current|aggregate):(\d)?\|/", $graph_variables[$field_name][$graph_item_id], $matches, PREG_SET_ORDER)) {
foreach ($matches as $match) {
$graph_variables[$field_name][$graph_item_id] = str_replace($match[0], variable_nth_percentile($match, $graph_item, $graph_items, $graph_start, $graph_end), $graph_variables[$field_name][$graph_item_id]);
}
}
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests