X-Git-Url: http://xvm.mit.edu/gitweb/invirt/scripts/munin.git/blobdiff_plain/57ada299e7ce6efa105a94662c9fada8470d921a..4c324bfb6be6d25e00cac859278f21729ca8e8b6:/web/usage.cgi?ds=inline diff --git a/web/usage.cgi b/web/usage.cgi index 59482e9..5675e09 100755 --- a/web/usage.cgi +++ b/web/usage.cgi @@ -82,8 +82,9 @@ sub die(@) { pointsize => 14, ); $im->Read('label:'.join('', @_)); - $format = 'png' unless exists($format{$format}); + $format = 'png' unless exists($formats{$format}); $mime_type = $formats{$format}; + $| = 1; print $q->header(-type=>$mime_type); $im->Write($format.':-'); CORE::die @_;