Skip to content

Commit

Permalink
SlideShowDemo fix integer division
Browse files Browse the repository at this point in the history
Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Feb 8, 2023
1 parent a63646f commit ef13af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/SlideShowDemo.py
Expand Up @@ -303,8 +303,8 @@ def twoDigits(self,n):
return ycpbuiltins.sformat("0%1", n) if (n < 10) else ycpbuiltins.sformat("%1", n)

def formatTime(self, seconds):
hours = (seconds / 3600)
minutes = (seconds / 60)
hours = (seconds // 3600)
minutes = (seconds // 60)
seconds = (seconds % 60)
return ycpbuiltins.sformat(
"%1:%2:%3",
Expand Down

0 comments on commit ef13af2

Please sign in to comment.