Skip to content

Commit

Permalink
m-n-d: reduce the speed of updates when too many plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp committed Jul 13, 2023
1 parent a90d90d commit 0c057fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/munin-node-debug
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ sub service
} elsif ($line =~ m/^fetch (\w+)/) {
my $plugin_number = get_plugin_number($1);
for (my $i = 0; $i < $fields_per_plugin; $i ++) {
my $value = sin( (time / 3600) * $plugin_number + $i) * (4 ** $plugin_number);
my $value = sin( (time / 3600) * $plugin_number + $i) * (4 ** ($plugin_number%5));

$value = int($value * 1024) if ($plugin_number + $i) % 3;
print $client get_ds($plugin_number, $i) . ".value $value\n";
Expand Down

0 comments on commit 0c057fa

Please sign in to comment.