From dff45983fb98a686a9b89c05ee1d0f1e09455ac2 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 12 Apr 2023 04:29:05 +0200 Subject: [PATCH] sys_df print pourcent sign --- etc/profile.d/nb.sh | 2 +- etc/profile.d/sys.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" -- 2.47.3