summaryrefslogtreecommitdiffstats
path: root/tools/build-pkg.lua
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-11-16 09:45:11 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-11-16 09:45:11 (GMT)
commit5f26c231eab428b7d302c35113cb5b221937916f (patch)
treedbbdfb34b6a496cd5219021f1f35bf43792581a8 /tools/build-pkg.lua
parent656d5c5066ddbe1f9fea55dcd6e6b9d635a5d21a (diff)
downloadmxe-5f26c231eab428b7d302c35113cb5b221937916f.zip
mxe-5f26c231eab428b7d302c35113cb5b221937916f.tar.gz
mxe-5f26c231eab428b7d302c35113cb5b221937916f.tar.bz2
build-pkg: round argument of os.date
fixes #1001
Diffstat (limited to 'tools/build-pkg.lua')
-rwxr-xr-xtools/build-pkg.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index 04c0d0d..eaacb93 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -571,7 +571,7 @@ local function progressPrinter(items)
local spent = now - started_at
local predicted_duration = spent * total_time / time_done
local predicted_end = started_at + predicted_duration
- local predicted_end_str = os.date("%c", predicted_end)
+ local predicted_end_str = os.date("%c", math.floor(predicted_end + 0.5))
local predicted_wait = predicted_end - now
local predicted_wait_hours = predicted_wait / 3600.0
return PROGRESS:format(pkgs_done, #items,