Author: bklaas
Date: Fri Jan 15 12:40:29 2010
New Revision: 8357
URL: http://svn.slimdevices.com/jive?rev=8357&view=rev
Log:
Bug: n/a
Description: don't check for data type of number on step.total, as lua does not
interpret stuff in quotes as such
Modified:
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua
Modified:
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua
URL:
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua?rev=8357&r1=8356&r2=8357&view=diff
==============================================================================
---
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua
(original)
+++
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua
Fri Jan 15 12:40:29 2010
@@ -1227,7 +1227,7 @@
end
local percentCompleteTable = {}
- if step.done and step.total and
type(step.total) == 'number' and step.total > 0 then
+ if step.done and step.total and
tonumber(step.total) > 0 then
local percentDoneString =
self:string('PERCENT_DONE')
local percentageDone =
tostring(math.floor( 100 * tonumber(step.done)/tonumber(step.total)))
local percentageString = percentageDone
.. "%"
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins