From f986963a3cef36e78320d418b4bb5eda15424fde Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Wed, 4 May 2016 16:06:57 +0300 Subject: [PATCH] Fixed the display of progress while downloading Clang. Signed-off-by: Dimitar Dobrev --- build/scripts/Utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/scripts/Utils.lua b/build/scripts/Utils.lua index 7d2f8896..b6e0387f 100644 --- a/build/scripts/Utils.lua +++ b/build/scripts/Utils.lua @@ -81,9 +81,9 @@ end function http.progress (total, curr) local ratio = curr / total; - ratio = math.floor(math.min(math.max(ratio, 0), 1)); + ratio = math.min(math.max(ratio, 0), 1); - local percent = ratio * 100; + local percent = math.floor(ratio * 100); print("Download progress (" .. percent .. "%/100%)") end