Browse Source

Fixed the display of progress while downloading Clang.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
cpp_module_crash
Dimitar Dobrev 9 years ago
parent
commit
f986963a3c
  1. 4
      build/scripts/Utils.lua

4
build/scripts/Utils.lua

@ -81,9 +81,9 @@ end @@ -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

Loading…
Cancel
Save