mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Make the _progress script a bit more robust.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
|
||||
(_, current, max) = sys.argv
|
||||
(_, current, max, *_) = sys.argv
|
||||
percent = int(100 * float(current) / float(max))
|
||||
print(f"[{percent:>3}%]")
|
||||
|
||||
Reference in New Issue
Block a user