diff --git a/components/disk.php b/components/disk.php index 614f52cd8c25c5e96eb9ffade9e55e3dd40bae6b..f03ad6799a9a9c8975506d573df153cc7620f56d 100644 --- a/components/disk.php +++ b/components/disk.php @@ -11,8 +11,8 @@ $o.="\t<tr><td align=\"center\">$user</td><td align=\"center\">${size}B</td></tr>\n"; } exec("df -m /home",$dfraw); - $dfout=explode(" ",$dfraw[1]); - $o.="\t<tr><td align=\"center\" colspan=\"2\">".floor($dfout[8]/1024)."GB used of ".floor($dfout[7]/1024). "GB (".floor($dfout[10]/1024)."GB available)</td></tr>\n"; + $dfout=explode(" ",$dfraw[1]); + $o.="\t<tr><td align=\"center\" colspan=\"2\">".floor($dfout[9]/1024)."GB used of ".floor($dfout[8]/1024). "GB (".floor($dfout[13]/1024)."GB available)</td></tr>\n"; $o.="</table>\n"; $o.=$Shame[count($Shame) - 1]; $o.="<br />\n"; @@ -37,7 +37,7 @@ list($u,$d)=parseLine($Shame[$i+1]); $others+=$d; } - $out.="data.setValue(0, 0, 'Free Space');\ndata.setValue(0,1,".$dfout[10]." );\n"; + $out.="data.setValue(0, 0, 'Free Space');\ndata.setValue(0,1,".$dfout[13]." );\n"; $out.="\t\tvar chart = new google.visualization.PieChart(document.getElementById('chart_div')); chart.draw(data, {width: 500, height: 360, backgroundColor: 'none', is3D: true, title: 'Disk Usage',sliceVisibilityThreshold: 1/180}); }