From 5ebb86e446b4cd858395b54f15028ab592e223a7 Mon Sep 17 00:00:00 2001 From: Nicolas LLOBERA Date: Thu, 23 Mar 2017 00:26:55 +0100 Subject: [PATCH] fix printf to allow to print % with mawk --- libs/disk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/disk.php b/libs/disk.php index b5ecfb4..6367114 100644 --- a/libs/disk.php +++ b/libs/disk.php @@ -6,7 +6,7 @@ $datas = array(); # if there are more than 7 awk's colums it means the mount point name contains spaces # so consider the first colums as a unique colum and the last 6 as real colums -if (!(exec('/bin/df -T -P | tail -n +2 | awk \'{ if (NF > 7) { for (i=1; i 7) { for (i=1; i 'N.A',