Added an empty server.log file in order to be able to put the server/logs directory in git. Some more bugfixes.
This commit is contained in:
parent
8e93df299f
commit
8d473b7663
5 changed files with 52 additions and 29 deletions
|
|
@ -178,7 +178,8 @@ def time_format(seconds, style=0):
|
|||
|
||||
Style 0: 1d 08:30
|
||||
Style 1: 1d
|
||||
Style 2: 1 day, 8 hours, 30 minutes, 10 seconds
|
||||
Style 2: 1 day, 8 hours, 30 minutes
|
||||
Style 3: 1 day, 8 hours, 30 minutes, 10 seconds
|
||||
"""
|
||||
if seconds < 0:
|
||||
seconds = 0
|
||||
|
|
@ -263,7 +264,7 @@ def time_format(seconds, style=0):
|
|||
seconds_str = '%i seconds ' % seconds
|
||||
retval = '%s%s%s%s' % (days_str, hours_str, minutes_str, seconds_str)
|
||||
|
||||
return retval
|
||||
return retval.strip()
|
||||
|
||||
|
||||
def datetime_format(dtobj):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue