X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=m_lib%2Fpbar%2Ftty_pbar.py;h=0bf4223ed3567503d5358aa7fa88eda6b5ea2bb8;hp=8953f6bf644d6413b4850c75fa925b4fcddca187;hb=74e8ff73da3efcb4e78358825b0d6b610197f721;hpb=547baac5dc5c77a2f772a7b88101d434912fe1ce diff --git a/m_lib/pbar/tty_pbar.py b/m_lib/pbar/tty_pbar.py index 8953f6b..0bf4223 100644 --- a/m_lib/pbar/tty_pbar.py +++ b/m_lib/pbar/tty_pbar.py @@ -56,12 +56,12 @@ class ttyProgressBar: self.current = current current -= self.min - lng = (current * self.width1) / self.max + lng = (current * self.width1) // self.max if current >= self.max: percent = 100 else: - percent = (current * 100) / self.max + percent = (current * 100) // self.max flush = False