r259 - trunk/scripts
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat May 12 11:19:43 EDT 2007
Author: icculus
Date: 2007-05-12 11:19:43 -0400 (Sat, 12 May 2007)
New Revision: 259
Modified:
trunk/scripts/mojosetup_mainline.lua
Log:
Fixed progress of individual downloads (total progress is still boned, though.)
Modified: trunk/scripts/mojosetup_mainline.lua
===================================================================
--- trunk/scripts/mojosetup_mainline.lua 2007-05-12 15:09:40 UTC (rev 258)
+++ trunk/scripts/mojosetup_mainline.lua 2007-05-12 15:19:43 UTC (rev 259)
@@ -672,8 +672,8 @@
local fname = string.gsub(url, "^.*/", "", 1) -- chop the dirs off...
local ptype = _("Downloading") -- !!! FIXME: localization.
local component = option.description
- local callback = function(ticks, bw, total)
- MojoSetup.downloaded = MojoSetup.downloaded + bw
+ local callback = function(ticks, justwrote, bw, total)
+ MojoSetup.downloaded = MojoSetup.downloaded + justwrote
local percent = calc_percent(MojoSetup.downloaded,
MojoSetup.totaldownload)
local item = fname .. ": " .. calc_percent(bw, total) .. "%" -- !!! FIXME: localization
More information about the mojosetup-commits
mailing list