From 550f1ee1cb3f460a0bb5b7a371109e320ad598e4 Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 19 Aug 2021 13:37:47 +0930 Subject: [PATCH] Add yearly network statistics and remove text-based hourly statistics --- web-stats.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web-stats.sh b/web-stats.sh index 2b5c6ee..59a41e7 100755 --- a/web-stats.sh +++ b/web-stats.sh @@ -20,11 +20,11 @@ webstat () { echo '

Memory:

'"$(free -h)"'

' echo '

Uptime:

'"$(uptime)"'

' echo '

Network Usage:

' - echo -e "

" - echo "
$(vnstat -i $interface1 -h | tail -n 9)
" + echo -e "


" + #echo "
$(vnstat -i $interface1 -h | tail -n 9)
" if [ ! -z $interface2 ]; then - echo -e "



" - echo "
$(vnstat -i $interface2 -h | tail -n 9)
" + echo -e "




" + #echo "
$(vnstat -i $interface2 -h | tail -n 9)
" fi echo '' }