Skip to content

Commit

Permalink
tools: fix test.py --time
Browse files Browse the repository at this point in the history
PR-URL: nodejs#27007
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
richardlau committed Apr 2, 2019
1 parent 5583d4d commit 8bfce89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ def FormatTime(d):


def FormatTimedelta(td):
if hasattr(td.total, 'total_seconds'):
if hasattr(td, 'total_seconds'):
d = td.total_seconds()
else: # python2.6 compat
d = td.seconds + (td.microseconds / 10.0**6)
Expand Down

0 comments on commit 8bfce89

Please sign in to comment.