2 decimal point
This commit is contained in:
parent
edbc12d14c
commit
ba85de05b3
4
bot.sh
4
bot.sh
@ -36,8 +36,8 @@ ookla_bytes_received=$(jq '.bytes_received' "$speedtest_ookla")
|
||||
ookla_bytes_sent=$(jq '.bytes_sent' "$speedtest_ookla")
|
||||
|
||||
# Converting to human readable units
|
||||
ookla_download_mbps=$(echo "scale=4; $ookla_download / 1000000" | bc)
|
||||
ookla_upload_mbps=$(echo "scale=4; $ookla_upload / 1000000" | bc)
|
||||
ookla_download_mbps=$(echo "scale=2; $ookla_download / 1000000" | bc)
|
||||
ookla_upload_mbps=$(echo "scale=2; $ookla_upload / 1000000" | bc)
|
||||
ookla_bytes_received_mb=$(echo "scale=2; $ookla_bytes_received / 1048576" | bc)
|
||||
ookla_bytes_sent_mb=$(echo "scale=2; $ookla_bytes_sent / 1048576" | bc)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user