[Pkg-privacy-commits] [torbrowser-launcher] 13/476: fixed some timer stuff

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:21:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository torbrowser-launcher.

commit 621156d995e5611b494ac8033e6b1504cff9e0fb
Author: Micah Lee <micahflee at riseup.net>
Date:   Sun Feb 10 13:37:51 2013 -0800

    fixed some timer stuff
---
 torbrowser-launcher | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/torbrowser-launcher b/torbrowser-launcher
index 89f6801..2b6d38c 100755
--- a/torbrowser-launcher
+++ b/torbrowser-launcher
@@ -7,8 +7,8 @@ pygtk.require('2.0')
 import gtk
 
 def download_chunk(base):
-  # download 8192 bytes a time
-  chunk = base.dl_response.read(8192)
+  # download 10kb a time
+  chunk = base.dl_response.read(10240)
   base.dl_bytes_so_far += len(chunk)
   base.tarball_file.write(chunk)
 
@@ -58,7 +58,7 @@ class Base:
     self.dl_bytes_so_far = 0
 
     # set a timer to download more chunks
-    self.timer = gobject.timeout_add(10, download_chunk, self)
+    self.timer = gobject.timeout_add(1, download_chunk, self)
 
     # open a file to write to
     self.tarball_file = open(self.tarball_path, 'w')
@@ -155,8 +155,8 @@ if __name__ == "__main__":
       print 'Already downloaded'
     else:
       # launch downloader
-      tarball_url = 'https://www.torproject.org/dist/torbrowser/linux/'+tarball_filename
-      #tarball_url = 'http://127.0.0.1/'+tarball_filename
+      #tarball_url = 'https://www.torproject.org/dist/torbrowser/linux/'+tarball_filename
+      tarball_url = 'http://127.0.0.1/'+tarball_filename
       base = Base(tbb_version, tarball_path, tarball_url)
       base.main()
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list