Ticket #480: munin-html.2.patch

File munin-html.2.patch, 0.8 kB (added by human, 3 years ago)

cgi proper size patch for debian stable (etch)

  • /usr/share/munin/munin-html

    old new  
    395395                    $service{imgweek}="$node-$service-week.png"; 
    396396                    $service{imgmonth}="$node-$service-month.png"; 
    397397                    $service{imgyear}="$node-$service-year.png"; 
    398  
    399                     for my $scale (@times) 
     398            } 
     399            for my $scale (@times) 
     400            { 
     401                    if (my ($w, $h) = &get_png_size (&munin_get_picture_filename ($config, $domain, $node, $service, $scale))) 
    400402                    { 
    401                            if (my ($w, $h) = &get_png_size (&munin_get_picture_filename ($config, $domain, $node, $service, $scale))) 
     403                       if ($w and $h)  
    402404                            { 
    403405                                    $service{"img".$scale."width"} = $w; 
    404406                                    $service{"img".$scale."height"} = $h;