From 1cab2fd166df6758e0cefcd2a4a718bbe238dd4e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 3 Dec 2023 22:29:24 -0600 Subject: [PATCH] Update status.inc --- inc/status.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index 4c008eb2..abef4bfc 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -756,7 +756,19 @@ REPLCHECK(){ } STATUS_SCANTIMES(){ - echo + while [ $# -gt 0 ]; do + case "${1}" in + -l|-last) LAST=${2};; + -h|-help|--help) + echo -e "Usage: ${idsCL[Yellow]}[nodemgmt or nmg] scantimes {opt}${idsCL[Default]} {" + width=35 + printf "%-${width}s- %s\n" " -l|-last" "(number of last scantimes to average from, defaults to 480)" + echo -e "}\n" + exit 0;; + esac + shift + done + }