X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fpbar%2Ftty_pbar.py;h=0bf4223ed3567503d5358aa7fa88eda6b5ea2bb8;hb=413c257c07051e4be5588021514dcf42ec0c56ed;hp=8953f6bf644d6413b4850c75fa925b4fcddca187;hpb=87ed070d1b1776366d3ddd15eef1f37a45c585ea;p=m_lib.git 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