Commit 7712de7a authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

minor fix

parent af54c7cf
......@@ -57,7 +57,15 @@ switch($cmd){
}
}else{
//read camogm.disk file
$sda2 = "";
//tmp
$devices = get_raw_dev();
foreach($devices as $device=>$size){
//size in MB
if ($device=="/dev/sda2") {
$sda2 = round($size/1048576,2);
$sda2 .= "G";
}
}
}
respond_xml("{$sda1} {$sda2}");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment