Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2016-05-03 15:57:53 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-05-03 15:57:53 +0300
commiteded02cfde6a48270b975d8390dac44b3ad22f35 (patch)
treef5aa20ddaade51615a4777a3642aadf2e4e546f7 /include/report
parenteda79af419d4d61ab6cc078d0c8f74bb8c031b98 (diff)
Rewritten counters and dealing with values
Diffstat (limited to 'include/report')
-rw-r--r--include/report4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/report b/include/report
index 7ef38707..448d7f61 100644
--- a/include/report
+++ b/include/report
@@ -33,8 +33,8 @@
#
# If no hardening has been found, set value to 1
if [ ${HPPOINTS} -eq 0 ]; then HPPOINTS=1; HPTOTAL=100; fi
- HPINDEX=`expr $HPPOINTS \* 100 / $HPTOTAL`
- HPAOBLOCKS=`expr $HPPOINTS \* 20 / $HPTOTAL`
+ HPINDEX=$((HPPOINTS * 100 / HPTOTAL))
+ HPAOBLOCKS=$((HPPOINTS * 20 / HPTOTAL))
# Set color related to rating
if [ ${HPINDEX} -lt 50 ]; then
HPCOLOR="${RED}"