Commit 79397740 authored by Jan Grewe's avatar Jan Grewe
Browse files

ensure that numfmt gets an uppercase unit

increase graph sizes
parent 646d7741
......@@ -13,7 +13,7 @@ BYPASSED=0
get_dirty_data () {
for dev in "${PATH}/${1}/bdev*/"; do
local size=$(<${dev}/dirty_data)
local bytes=$(/usr/bin/numfmt --from=iec ${size})
local bytes=$(/usr/bin/numfmt --from=iec ${size^^})
DIRTY_DATA=$(( ${DIRTY_DATA} + ${bytes} ))
done
}
......@@ -25,7 +25,7 @@ get_hitrate () {
if [ -z ${hitrate} ]; then
hitrate=${dev_hr}
fi
hitrate=$(( (${hitrate} + ${dev_hr}) / 2 ))
hitrate=$(( (${hitrate} + ${dev_hr}) / 2 ))
done
eval HITRATE_${2}=${hitrate}
}
......@@ -40,7 +40,7 @@ get_requests () {
get_bypassed () {
for dev in "${PATH}/${1}/bdev*/"; do
local size=$(<${dev}/stats_five_minute/bypassed)
local bytes=$(/usr/bin/numfmt --from=iec ${size})
local bytes=$(/usr/bin/numfmt --from=iec ${size^^})
BYPASSED=$(( ${BYPASSED} + ${bytes} ))
done
}
......@@ -74,4 +74,4 @@ echo "bb:${BYPASSED}\
req_mc:${REQUEST_miss_collisions}\
req_ra:${REQUEST_readaheads}"
exit 0
exit 0
\ No newline at end of file
......@@ -7,9 +7,9 @@
<t_image_format_id></t_image_format_id>
<image_format_id>1</image_format_id>
<t_height></t_height>
<height>120</height>
<height>200</height>
<t_width></t_width>
<width>500</width>
<width>600</width>
<t_slope_mode></t_slope_mode>
<slope_mode>on</slope_mode>
<t_auto_scale></t_auto_scale>
......
......@@ -7,9 +7,9 @@
<t_image_format_id></t_image_format_id>
<image_format_id>1</image_format_id>
<t_height></t_height>
<height>120</height>
<height>200</height>
<t_width></t_width>
<width>500</width>
<width>600</width>
<t_slope_mode></t_slope_mode>
<slope_mode>on</slope_mode>
<t_auto_scale></t_auto_scale>
......
......@@ -7,9 +7,9 @@
<t_image_format_id></t_image_format_id>
<image_format_id>1</image_format_id>
<t_height></t_height>
<height>120</height>
<height>200</height>
<t_width></t_width>
<width>500</width>
<width>600</width>
<t_slope_mode></t_slope_mode>
<slope_mode>on</slope_mode>
<t_auto_scale></t_auto_scale>
......
......@@ -7,9 +7,9 @@
<t_image_format_id></t_image_format_id>
<image_format_id>1</image_format_id>
<t_height></t_height>
<height>120</height>
<height>200</height>
<t_width></t_width>
<width>500</width>
<width>600</width>
<t_slope_mode></t_slope_mode>
<slope_mode>on</slope_mode>
<t_auto_scale></t_auto_scale>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment