summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@collabora.com>2014-03-17 19:42:48 +0100
committerMatúš Kukan <matus.kukan@collabora.com>2014-03-17 20:45:44 +0100
commit4604b5f717805bee981149cb2b58c41ecedd6278 (patch)
tree7bfec9380653c05300d30b1a366960df4182ad53
parented5a94f515c9cc021eb7656981c8b406615617dd (diff)
loperf: Print smaller numbers into history file.
-rwxr-xr-xloperf/loperf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/loperf/loperf.sh b/loperf/loperf.sh
index 4ee5f6d..aefd35d 100755
--- a/loperf/loperf.sh
+++ b/loperf/loperf.sh
@@ -124,7 +124,7 @@ function write_data {
# CEst = Ir + 10 Bm + 10 L1m + 20 Ge + 100 L2m + 100 LLm
CEst=$(expr ${data[0]} + 10 \* $(expr ${data[12]} + ${data[10]}) + 10 \* $(expr ${data[3]} + ${data[4]} + ${data[5]}) + 20 \* ${data[13]} + 100 \* $(expr ${data[6]} + ${data[7]} + ${data[8]}))
echo $'\t'$CEst >> "$CSV_FN"
- echo -n ",$CEst" >> "$CSV_HISTORY"
+ echo -n ",$(expr ${CEst} / 1000000)" >> "$CSV_HISTORY"
}
# Do a clean launch