mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Change 1024 to 1000 for gigabytes
This commit is contained in:
@@ -21,13 +21,13 @@ for i in $(/usr/sbin/so-elasticsearch-query _cat/allocation | awk '{print $2}');
|
||||
size=$(echo $i | grep -oE '[0-9].*' | awk '{print int($1+0.5)}')
|
||||
unit=$(echo $i | grep -oE '[A-Za-z]+')
|
||||
if [ $unit = "tb" ]; then
|
||||
size=$(( size * 1024 * 1024 * 1024 * 1024 ))
|
||||
size=$(( size * 1000 * 1000 * 1000 * 1000<F12> ))
|
||||
elif [ $unit = "gb" ]; then
|
||||
size=$(( size * 1024 * 1024 * 1024 ))
|
||||
size=$(( size * 1000 * 1000 * 1000 ))
|
||||
elif [ $unit = "mb" ]; then
|
||||
size=$(( size * 1024 * 1024 ))
|
||||
size=$(( size * 1000 * 1000 ))
|
||||
elif [ $unit = "kb" ]; then
|
||||
size=$(( size * 1024 ))
|
||||
size=$(( size * 1000 ))
|
||||
elif [ $unit = "b" ]; then
|
||||
size=size
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user