summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/Graphs.pm
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-09-05 08:13:24 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-09-05 08:13:24 +0200
commit25d4c21620dd04ce9c472ec5141560cefdf9ae29 (patch)
tree9a9ebe98475446f83a91c1ddffc5874801123849 /lib/Smokeping/Graphs.pm
parent4280c7413ee558d1e19f993a85b675d3c4598a05 (diff)
downloadsmokeping-25d4c21620dd04ce9c472ec5141560cefdf9ae29.tar.gz
smokeping-25d4c21620dd04ce9c472ec5141560cefdf9ae29.tar.xz
* fixes for pod generation
* skip multi target hosts for slaves * report content-lengh in header
Diffstat (limited to 'lib/Smokeping/Graphs.pm')
-rw-r--r--lib/Smokeping/Graphs.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Smokeping/Graphs.pm b/lib/Smokeping/Graphs.pm
index 2c62367..bb7002d 100644
--- a/lib/Smokeping/Graphs.pm
+++ b/lib/Smokeping/Graphs.pm
@@ -269,10 +269,11 @@ sub get_multi_detail ($$$$;$){
if ($mode eq 'a'){ # ajax mode
open my $img, "${imgbase}_${end}_${start}.png";
binmode $img;
- print "Content-Type: image/png\n\n";
+ print "Content-Type: image/png\n";
my $data;
read($img,$data,(stat($img))[7]);
close $img;
+ print "Content-Length: ".length($data)."\n\n";
print $data;
unlink "${imgbase}_${end}_${start}.png";
exit;