]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/scripts/makegraphs
Load acpi module for button shutdown, event is still missing
[people/pmueller/ipfire-2.x.git] / src / scripts / makegraphs
index 92eba691b5ff1835fb2766c71a7393277f2ff111..6932dec9e732c9ab0b5f68f8070574696613278e 100644 (file)
@@ -473,7 +473,9 @@ sub updatehdddata
        }
        elsif ( index($hdd_output, "$disk") != -1 )
        {
-           $hdd_output =~ /.*:.*:\s*(\d+).*\s/;
+           my @temp = split(/:/,$hdd_output);
+           $temp[2] =~ s/\D//gi;
+           $temp = $temp[2];
            $temp = $1;
        }
        else