[tor-commits] [vidalia-plugins/master] Set event Bandwidth so the graph works

chiiph at torproject.org chiiph at torproject.org
Sat Aug 4 00:36:26 UTC 2012


commit 54be496f6080d999c666abe865706673c6365784
Author: Tomás Touceda <chiiph at torproject.org>
Date:   Sun Jul 22 14:13:22 2012 -0300

    Set event Bandwidth so the graph works
---
 bwgraph/bwgraph.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/bwgraph/bwgraph.js b/bwgraph/bwgraph.js
index a733b58..c9d7068 100644
--- a/bwgraph/bwgraph.js
+++ b/bwgraph/bwgraph.js
@@ -15,16 +15,17 @@ var bwgraph = {
 
     start: function() {
         vdebug("Bwhistory at start");
-        torControl["bandwidthUpdate(quint64, quint64)"].connect(this, this.saveBandwidth);
         this.createGUI();
         this.loadSettings();
 
         this.recv = parseInt(this.tab.getSetting(this.Sent, 0));
         this.sent = parseInt(this.tab.getSetting(this.Recv, 0));
         this.from = this.tab.getSetting(this.From, "");
+        torControl.setEvent(TorEvents.Bandwidth);
 
         if(this.from.length == 0)
             this.from = QDateTime.currentDateTime().toString();
+        torControl["bandwidthUpdate(quint64, quint64)"].connect(this, this.saveBandwidth);
     },
 
     saveBandwidth: function(recv, sent) {





More information about the tor-commits mailing list