Package: enigma2-plugin-extensions-kiddytimer
-Version: 1.0b-20100919-r0
+Version: 1.0c-20100926-r0
Description: Allows to control the Kids' daily TV usage
Architecture: mipsel
Section: extra
if iRemaining < 0:
iRemaining = 0
self.remainingTime = iRemaining
- self.remainingPercentage = iRemaining / self.currentDayTime
+ if self.currentDayTime > 0:
+ self.remainingPercentage = iRemaining / self.currentDayTime
+ else:
+ self.remainingPercentage = 0
def callbackSetTimer(self, iMinutes):
iSeconds = iMinutes * 60