diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2006-08-30 10:36:34 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2006-08-30 10:36:34 +0200 |
commit | a1e648c79fc9300d981b45c0d31b594c819b51c7 (patch) | |
tree | dd3607d49e9a35515b2cebc8d1b099aa20db6c42 /lib/Smokeping.pm | |
parent | e0f339933ed2ab70a1b6d48f962a0b091ea9337e (diff) | |
download | smokeping-a1e648c79fc9300d981b45c0d31b594c819b51c7.tar.gz smokeping-a1e648c79fc9300d981b45c0d31b594c819b51c7.tar.xz |
images shoud be written in binmode
Diffstat (limited to 'lib/Smokeping.pm')
-rw-r--r-- | lib/Smokeping.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index fbf8a56..f0fb982 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -3267,6 +3267,7 @@ sub gen_imgs ($){ (defined $modulemodtime and $modulemodtime > (stat _)[9])){ open W, ">".$cfg->{General}{imgcache}."/rrdtool.png" or do { warn "WARNING: creating $cfg->{General}{imgcache}/rrdtool.png: $!\n"; return 0 }; +binmode W; print W unpack ('u', <<'UUENC'); MB5!.1PT*&@H -24A$4@ 'D P" 8 UK=7M "7!(67, YG M .9P&/B8)Q .]DE$051XG.V<"71.9QK''X14FMJ"JHHEDUJJC)-2M11I @@ -3363,6 +3364,7 @@ close W; (defined $modulemodtime and $modulemodtime > (stat _)[9])){ open W, ">".$cfg->{General}{imgcache}."/smokeping.png" or do { warn "WARNING: creating $cfg->{General}{imgcache}/smokeping.png: $!\n"; return 0}; +binmode W; print W unpack ('u', <<'UUENC'); MB5!.1PT*&@H -24A$4@ '@ B" ( ;$XH4 "7!(67, [# M .PP'';ZAD 0T$E$051HWNU:2XQDUUG^S[FONO?6^]'555U=W5V>GA[W |