Skip to content

Commit d04f802

Browse files
time string format in progress bar
1 parent fabaa95 commit d04f802

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/paddle/hapi/progressbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def convert_uint16_to_float(in_list):
147147
info += f' {v}'
148148

149149
if self._num is not None and current_num < self._num:
150-
eta = time_per_unit * (self._num - current_num)
150+
eta = int(time_per_unit * (self._num - current_num))
151151
if eta > 3600:
152152
eta_format = (
153153
f'{eta // 3600}:{(eta % 3600) // 60:02}:{eta % 60:02}'

0 commit comments

Comments
 (0)