From: Roland Häder Date: Fri, 25 Aug 2023 15:50:18 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=39d75e40bd04b06bf2e3eae001b9d01337272e98;p=fba.git Continued: - fixed Shell script - scoreboard for commands is total peers --- diff --git a/nodeinfo.sh b/nodeinfo.sh index edb2085..cdeaa8f 100755 --- a/nodeinfo.sh +++ b/nodeinfo.sh @@ -52,7 +52,7 @@ else DOMAINS=$(sqlite3 blocks.db "SELECT domain FROM instances WHERE software IS NULL AND nodeinfo_url IS NOT NULL ORDER BY last_updated ASC;") fi -if [ -z "${DOMAINS}" and -z "${SOFTWARE_LIST}" ] +if [ -z "${DOMAINS}" -a -z "${SOFTWARE_LIST}" ] then echo "$0: No domains or software found! MODE='${MODE}'" exit 255 diff --git a/templates/views/scoreboard.html b/templates/views/scoreboard.html index 4e40f8d..5cf8d4b 100644 --- a/templates/views/scoreboard.html +++ b/templates/views/scoreboard.html @@ -36,7 +36,7 @@ № {% if mode in ('software', 'avg_peers', 'obfuscator') %}Software{% elif mode == 'obfuscation' %}Obfuscation status{% elif mode == 'detection_mode' %}Detection mode{% elif mode == 'error_code' %}Error code{% else %}Instance{% endif %} - {% if mode == 'reference' %}References{% elif mode == 'avg_peers' %}Average{% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode') %}Total{% else %}Blocks{% endif %} + {% if mode == 'reference' %}References{% elif mode == 'avg_peers' %}Average{% elif mode in('software', 'error_code', 'obfuscator', 'obfuscation', 'block_level', 'detection_mode', 'command') %}Total{% else %}Blocks{% endif %}