Ticket #881: more-graphperiod-substitutions-1.4.3.patch
| File more-graphperiod-substitutions-1.4.3.patch, 0.9 kB (added by stavros, 2 years ago) |
|---|
-
/usr/lib/perl5/vendor_perl/5.8.8/Munin/Master/GraphOld.pm
old new 280 280 sub get_title { 281 281 my $service = shift; 282 282 my $scale = shift; 283 284 return (munin_get($service, "graph_title", $service) . " - by $scale"); 283 my $res = munin_get($service, "graph_title", $service) . " - by $scale"; 284 my $period = munin_get($service, "graph_period", "second"); 285 $res =~ s/\$\{graph_period\}/$period/g; 286 return $res; 285 287 } 286 288 287 289 sub get_custom_graph_args { … … 856 858 $field_count++; 857 859 858 860 my $tmplabel = munin_get($field, "label", $fname); 861 my $period = munin_get($service, "graph_period", "second"); 862 $tmplabel =~ s/\$\{graph_period\}/$period/g; 859 863 860 864 push(@rrd, 861 865 $fielddraw
