diff options
author | Saptak S <saptak013@gmail.com> | 2021-03-30 21:20:59 +0530 |
---|---|---|
committer | Saptak S <saptak013@gmail.com> | 2021-04-12 22:57:09 +0530 |
commit | 157ffc9ba5e34d2dcd44bb1b400d957ea83ed556 (patch) | |
tree | 0f8eaa6380a5c18e14915629dd47fb15e3d510dc /cli/onionshare_cli/web/share_mode.py | |
parent | 4a7c062dbdc52961adbe0ebb338350410e308250 (diff) | |
download | onionshare-157ffc9ba5e34d2dcd44bb1b400d957ea83ed556.tar.gz onionshare-157ffc9ba5e34d2dcd44bb1b400d957ea83ed556.zip |
Fixes parameters in the test function
Diffstat (limited to 'cli/onionshare_cli/web/share_mode.py')
-rw-r--r-- | cli/onionshare_cli/web/share_mode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/onionshare_cli/web/share_mode.py b/cli/onionshare_cli/web/share_mode.py index 87ccf1d3..0767992d 100644 --- a/cli/onionshare_cli/web/share_mode.py +++ b/cli/onionshare_cli/web/share_mode.py @@ -313,7 +313,7 @@ class ShareModeWeb(SendBaseModeWeb): # tell GUI the progress downloaded_bytes = fp.tell() - percent = (1.0 * downloaded_bytes / self.filesize) * 100 + percent = (1.0 * downloaded_bytes / filesize) * 100 bytes_left -= read_size # only output to stdout if running onionshare in CLI mode, or if using Linux (#203, #304) |