]> dxcluster.org Git - spider.git/commitdiff
fix mrtg script
authorDirk Koopman <djk@tobit.co.uk>
Sat, 22 Sep 2007 15:08:00 +0000 (17:08 +0200)
committerDirk Koopman <djk@tobit.co.uk>
Sat, 22 Sep 2007 15:08:00 +0000 (17:08 +0200)
cmd/mrtg.pl

index 9e6112c64fb142c627d8bf3253dfa11b3e756104..93adf33233f69526bc9a8258c46b7b0b7f0f8952 100644 (file)
@@ -142,5 +142,11 @@ if ($want{wcy} || $want{all}) {
 # 
 # do the mrtg thing
 #
-my @out = $mc->run unless $want{nomrtg};
+
+my @out;
+{
+local %ENV;
+$ENV{LANG} = 'C';
+@out = $mc->run unless $want{nomrtg};
+}
 return (1, @out);