diff options
Diffstat (limited to 'src/plugins/stats/functions.c')
-rw-r--r-- | src/plugins/stats/functions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/stats/functions.c b/src/plugins/stats/functions.c index f96775fd..b595c81f 100644 --- a/src/plugins/stats/functions.c +++ b/src/plugins/stats/functions.c | |||
@@ -14,8 +14,8 @@ | |||
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with GNUnet; see the file COPYING. If not, write to the | 16 | along with GNUnet; see the file COPYING. If not, write to the |
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02110-1301, USA. |
19 | 19 | ||
20 | */ | 20 | */ |
21 | 21 | ||
@@ -250,7 +250,7 @@ static int getTrafficSendStats(const void * closure, | |||
250 | 512, | 250 | 512, |
251 | "# bytes received of type %d", | 251 | "# bytes received of type %d", |
252 | P2P_PROTO_gap_QUERY); | 252 | P2P_PROTO_gap_QUERY); |
253 | if (OK == getStatValue(&queries, | 253 | if (OK != getStatValue(&queries, |
254 | &lqueries, | 254 | &lqueries, |
255 | NULL, | 255 | NULL, |
256 | buffer)) { | 256 | buffer)) { |
@@ -274,7 +274,7 @@ static int getTrafficSendStats(const void * closure, | |||
274 | data[0][0] = 0.8 * noise / (bandup * dtime / cronSECONDS); /* red */ | 274 | data[0][0] = 0.8 * noise / (bandup * dtime / cronSECONDS); /* red */ |
275 | data[0][1] = 0.8 * (noise + content) / (bandup*dtime / cronSECONDS); /* green */ | 275 | data[0][1] = 0.8 * (noise + content) / (bandup*dtime / cronSECONDS); /* green */ |
276 | data[0][2] = 0.8 * (noise + content + queries) / (bandup*dtime / cronSECONDS); /* yellow */ | 276 | data[0][2] = 0.8 * (noise + content + queries) / (bandup*dtime / cronSECONDS); /* yellow */ |
277 | data[0][3] = 0.8 * total / (bandup*dtime / cronSECONDS); /* yellow */ | 277 | data[0][3] = 0.8 * total / (bandup*dtime / cronSECONDS); /* blue */ |
278 | /* printf("O: %f %f %f\n", | 278 | /* printf("O: %f %f %f\n", |
279 | data[0][0], | 279 | data[0][0], |
280 | data[0][1], | 280 | data[0][1], |