[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r20623: {torflow} Fix diff= keyword to use descriptor values for differences. (torflow/trunk/NetworkScanners/BwAuthority)
Author: mikeperry
Date: 2009-09-21 02:15:09 -0400 (Mon, 21 Sep 2009)
New Revision: 20623
Modified:
torflow/trunk/NetworkScanners/BwAuthority/aggregate.py
Log:
Fix diff= keyword to use descriptor values for differences.
Modified: torflow/trunk/NetworkScanners/BwAuthority/aggregate.py
===================================================================
--- torflow/trunk/NetworkScanners/BwAuthority/aggregate.py 2009-09-21 06:11:30 UTC (rev 20622)
+++ torflow/trunk/NetworkScanners/BwAuthority/aggregate.py 2009-09-21 06:15:09 UTC (rev 20623)
@@ -308,7 +308,7 @@
# Node class
use_bw = BETA*n.ns_bw[chosen_bw_idx]+(1.0-BETA)*n.desc_bw[chosen_bw_idx]
n.new_bw = use_bw*((ALPHA + n.ratio)/(ALPHA + 1.0))
- n.change = n.new_bw - n.ns_bw[chosen_bw_idx]
+ n.change = n.new_bw - n.desc_bw[chosen_bw_idx]
if n.idhex in prev_consensus:
if prev_consensus[n.idhex].bandwidth != None: