From: Nicolas Boisselier Date: Wed, 12 Apr 2023 02:29:05 +0000 (+0200) Subject: sys_df print pourcent sign X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=dff45983fb98a686a9b89c05ee1d0f1e09455ac2;p=nb.git sys_df print pourcent sign --- diff --git a/etc/profile.d/nb.sh b/etc/profile.d/nb.sh index 58df28a9..efe540cd 100644 --- a/etc/profile.d/nb.sh +++ b/etc/profile.d/nb.sh @@ -128,7 +128,7 @@ nb_api_post_host_info() { nb_api_post_hosts_infos() { ( - sys_infos arch nproc ips interfaces model os date_install mem_total mem_used + sys_infos arch nproc ips interfaces model os date_install mem_total sys_interfaces_all | awk 'BEGIN{preff="int."} {print preff""$1".mac\t"$2} $3!="" {print preff""$1".ip\t"$3;}' # NB 11.04.23 which lshw > /dev/null && lshw -quiet -class system 2>/dev/null \ diff --git a/etc/profile.d/sys.sh b/etc/profile.d/sys.sh index 893072e6..aca9034b 100644 --- a/etc/profile.d/sys.sh +++ b/etc/profile.d/sys.sh @@ -89,7 +89,7 @@ sys_df() { used=${i[2]} free=${i[3]} pcent=${i[4]} - pcent=${pcent//%/} + # NB 12.04.23 pcent=${pcent//%/} dir=${i[5]} # On docker root / mount point is "none"