Ticket #480: munin-html.patch
| File munin-html.patch, 1.6 kB (added by rune.skillingstad@ntnu.no, 5 years ago) |
|---|
-
munin-html
old new 687 687 my $serv = shift; 688 688 689 689 # base size of graph rectangle + space outside graph rectangle 690 my $height = munin_get ($config, "graph_height", 100, $domain, $node, $serv) + 1 56;691 my $width = munin_get ($config, "graph_width" , 400, $domain, $node, $serv) + 9 3;690 my $height = munin_get ($config, "graph_height", 100, $domain, $node, $serv) + 147; 691 my $width = munin_get ($config, "graph_width" , 400, $domain, $node, $serv) + 95; 692 692 693 693 # In addition, the height increases by 15 pixels for each label underneath 694 694 foreach my $field (keys %{$config->{domain}->{$domain}->{node}->{$node}->{client}->{$serv}}) … … 697 697 { 698 698 if (munin_draw_field ($config->{domain}->{$domain}->{node}->{$node}, $serv, $1)) 699 699 { 700 $height += 1 5;700 $height += 12; 701 701 my $tmpline = munin_get ($config, "line", undef, $domain, $node, $serv, $1); 702 702 if ($tmpline) 703 703 { 704 704 my @tmparr = ($tmpline =~ /:/g); 705 705 if (scalar (@tmparr) > 2) 706 706 { # We've got line definitions with labels... 707 $height += 1 5;707 $height += 12; 708 708 } 709 709 } 710 710 } 711 711 } 712 712 } 713 713 # ...and +15 if there's a graph total 714 $height += 1 5if (munin_get ($config, "graph_total", undef, $domain, $node, $serv));714 $height += 12 if (munin_get ($config, "graph_total", undef, $domain, $node, $serv)); 715 715 # ...and +15 if there's min/max-headers above the labels 716 $height += 1 5if (munin_graph_column_headers ($config, $domain, $node, $serv));716 $height += 12 if (munin_graph_column_headers ($config, $domain, $node, $serv)); 717 717 718 718 return ($width, $height); 719 719 }
