Force uptime output to english
authorJamie Cameron <jcameron@webmin.com>
Mon, 29 Jun 2009 20:09:42 +0000 (20:09 +0000)
committerJamie Cameron <jcameron@webmin.com>
Mon, 29 Jun 2009 20:09:42 +0000 (20:09 +0000)
blue-theme/right.cgi

index a3b3f6a..9a2b91d 100755 (executable)
@@ -59,7 +59,7 @@ if ($level == 0) {
        print "<td>",&text('right_kernelon', $o, $r, $m),"</td> </tr>\n";
 
        # System uptime
-       $out = &backquote_command("uptime");
+       $out = &backquote_command("LC_ALL='' LANG='' uptime");
        $uptime = undef;
        if ($out =~ /up\s+(\d+)\s+days,\s+(\d+):(\d+)/) {
                # up 198 days,  2:06