Skip to content

Commit

Permalink
Update bar length, change # => = bar
Browse files Browse the repository at this point in the history
  • Loading branch information
rajat19 committed May 5, 2019
1 parent b051dd5 commit 831eac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
setup(
name='search-torrent',
description='Search for torrents using command line',
version='1.0.0',
version='1.0.2',
url='http://github.com/rajat19/torrent-crawler',
download_url='https://github.com/rajat19/torrent-crawler/releases',
author='Rajat Srivastava',
Expand Down
4 changes: 2 additions & 2 deletions torrent_crawler/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class ProgressBar:
@staticmethod
def update_progress(index, total):
bar_length = 10
bar_length = 30
status = ""
progress = index / total
if isinstance(progress, int):
Expand All @@ -26,7 +26,7 @@ def update_progress(index, total):
status = "Done...\r\n"
block = int(round(bar_length * progress))
text = "\rCrawling like a snake: [{0}] {1}% [{2}/{3}] {4}".format(
"#"*block + "-"*(bar_length - block), int(progress*100), index, total, status)
"="*block + "-"*(bar_length - block), int(progress*100), index, total, status)
sys.stdout.write(text)
sys.stdout.flush()

Expand Down

0 comments on commit 831eac7

Please # to comment.