summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-dev/mp.py
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-dev/mp.py')
-rwxr-xr-xlinhes/linhes-dev/mp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/linhes/linhes-dev/mp.py b/linhes/linhes-dev/mp.py
index 25f7cc0..f415b29 100755
--- a/linhes/linhes-dev/mp.py
+++ b/linhes/linhes-dev/mp.py
@@ -460,11 +460,11 @@ class Packagefile(object):
def formatTD(time):
# convert seconds to day, hour, minutes and seconds
- days = time // (24 * 3600)
+ days = int(time // (24 * 3600))
time = time % (24 * 3600)
- hours = time // 3600
+ hours = int(time // 3600)
time %= 3600
- minutes = time // 60
+ minutes = int(time // 60)
time %= 60
seconds = int(time)