[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33846 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33846 - gnunet/src/ats |
Date: |
Wed, 25 Jun 2014 17:35:29 +0200 |
Author: wachs
Date: 2014-06-25 17:35:29 +0200 (Wed, 25 Jun 2014)
New Revision: 33846
Modified:
gnunet/src/ats/plugin_ats_ril.c
Log:
forgotten commit making penalty quadratic as used and documented
Modified: gnunet/src/ats/plugin_ats_ril.c
===================================================================
--- gnunet/src/ats/plugin_ats_ril.c 2014-06-25 15:34:54 UTC (rev 33845)
+++ gnunet/src/ats/plugin_ats_ril.c 2014-06-25 15:35:29 UTC (rev 33846)
@@ -1047,7 +1047,8 @@
over_in = net->bw_in_utilized - net->bw_in_available;
if (RIL_ACTION_BW_IN_INC == agent->a_old)
{
- over_in *= 2;
+ /* increase quadratically */
+ over_in *= over_in;
}
}
if (net->bw_out_utilized > net->bw_out_available)
@@ -1055,10 +1056,11 @@
over_out = net->bw_out_utilized - net->bw_out_available;
if (RIL_ACTION_BW_OUT_INC == agent->a_old)
{
- over_out *= 2;
+ /* increase quadratically */
+ over_out *= over_out;
}
}
- over_max = (over_in + over_out) / RIL_MIN_BW;
+ over_max = (over_in + over_out) / (RIL_MIN_BW * RIL_MIN_BW);
return -1.0 * (double) over_max;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33846 - gnunet/src/ats,
gnunet <=