We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37015f1 + 378802d commit 303be91Copy full SHA for 303be91
sh/df.php
@@ -1,6 +1,6 @@
1
<?php
2
3
-exec('/bin/df -Ph|awk \'{print $1","$2","$3","$4","$5","$6}\'', $result);
+exec('/bin/df -Ph | awk \'BEGIN {OFS=","} {print $1,$2,$3,$4,$5,$6}\'', $result);
4
5
header('Content-Type: application/json; charset=UTF-8');
6
echo "[";
0 commit comments