Fabrice-TIERCELIN commited on
Commit
80e7e41
·
verified ·
1 Parent(s): 8f80e47

Correctly compute time

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -163,9 +163,9 @@ def redraw(
163
 
164
  end = time.time()
165
  secondes = int(end - start)
166
- minutes = secondes // 60
167
  secondes = secondes - (minutes * 60)
168
- hours = minutes // 60
169
  minutes = minutes - (hours * 60)
170
  return [
171
  output_image,
 
163
 
164
  end = time.time()
165
  secondes = int(end - start)
166
+ minutes = math.floor(secondes / 60)
167
  secondes = secondes - (minutes * 60)
168
+ hours = math.floor(minutes / 60)
169
  minutes = minutes - (hours * 60)
170
  return [
171
  output_image,