From 20cb9cdad08bcc0408f43053d9ed76cde9e9c81c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Thu, 27 Aug 2015 20:00:27 +0200 Subject: [PATCH] =?UTF-8?q?Proprifie=20quota=20et=20affiche=20home=20?= =?UTF-8?q?=C3=A0=20la=20plase=20de=20home-adh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/all/quota | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/bin/all/quota b/bin/all/quota index 35e321ae..40766e35 100755 --- a/bin/all/quota +++ b/bin/all/quota @@ -4,19 +4,13 @@ if [[ $1 = "" ]] || [[ $1 = $USER ]] ; then /usr/bin/quota else /usr/bin/quota $* -fi | awk -F'(:| *)' ' +fi | sed 's/home-adh/home/' | awk -F'(:| *)' ' BEGIN { fs = "" } /Disk/ { print; print "utilisé\tquota\tlimite\t%\t(en Mo)" } { if (NF == 2) { fs = $2 } else if (fs != "") { - #unit = 512/1024 - #system(/usr/bin/stat -c %B " fs) | getline unit - #if (fs == "/home") { total = 400 } - #else if (fs == "/var/mail") { total = 75 } - #else { total = 100 } printf "%3.2f\t%3.2f\t%3.2f\t%3.1f\t%s\n", $2/1024, $3/1024, $4/1024, $2*100/$3, fs - #printf "%3.2f\t%3.2f\t%3.2f\t%3.1f\t%s\n", $2/1024*unit, $3/1024*unit, $4/1024*unit, $2*100/$3, fs fs = "" } }'