? activate.patch ? downloads ? oldcircle ? share Index: circled =================================================================== RCS file: /cvsroot/circle/circle/circled,v retrieving revision 1.27 diff -u -r1.27 circled --- circled 24 May 2003 09:48:59 -0000 1.27 +++ circled 21 Oct 2003 05:19:31 -0000 @@ -76,6 +76,8 @@ do_command("quit\n") elif ['status'] == sys.argv[1:]: do_command("status\n") + elif ['activate'] == sys.argv[1:]: + do_command("activate\n") elif ['get'] == sys.argv[1:2]: do_command("get "+sys.argv[2]+"\n") elif ['search'] == sys.argv[1:2]: @@ -140,6 +142,9 @@ circled stop - stop the Circle daemon circled status - show the status of the Circle daemon + + circled activate - manually activate the Circle daemon's hashtable + (only if you plan to keep it running long) circled search - runs a search Index: circlelib/circle.py =================================================================== RCS file: /cvsroot/circle/circle/circlelib/circle.py,v retrieving revision 1.291 diff -u -r1.291 circle.py --- circlelib/circle.py 3 Oct 2003 18:51:34 -0000 1.291 +++ circlelib/circle.py 21 Oct 2003 05:19:31 -0000 @@ -1907,10 +1907,13 @@ else: status = status + _(' Apt cache not published\n') status = status + _(' %d files published (this may take a while to update)')%n_files+'\n' - status = status + _(' Connected to %d peers\n Total network usage %s\n') % (n_peers,utility.human_size(n_bytes)) + status = status + _(' Connected to %d peers, hashtable is %s\n Total network usage %s\n') % (n_peers,("inactive","active")[self.node.hashtable_running],utility.human_size(n_bytes)) if http_running: status=status+ _(' Accepting local http requests on port %d\n') %self.http_port output.write(status) + elif command == 'activate\n': + self.node.activate_hashtable() + output.write("Hashtable activated") elif command == 'debug\n': for item in threading.enumerate(): output.write(repr(item)+'\n\n')