diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-29 10:19:43 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-29 10:19:43 +0000 |
commit | cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb (patch) | |
tree | b704e00a3af618b2cd174a7f89514eaebd82a1cf /src/util/load.c | |
parent | bb4fc4f4007988874f910d4de5492f9629301641 (diff) | |
download | gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.tar.gz gnunet-cddbdf5b928c68ab71b40c950b9f01ea68a9fbdb.zip |
run indent twice, it alternates between two 'canonical' forms, also run whitespace remover
Diffstat (limited to 'src/util/load.c')
-rw-r--r-- | src/util/load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/load.c b/src/util/load.c index c7ef07295..35ed443c3 100644 --- a/src/util/load.c +++ b/src/util/load.c | |||
@@ -164,7 +164,7 @@ calculate_load (struct GNUNET_LOAD_Value *load) | |||
164 | if (load->cummulative_request_count <= 1) | 164 | if (load->cummulative_request_count <= 1) |
165 | return; | 165 | return; |
166 | /* calcuate std dev of latency; we have for n values of "i" that: | 166 | /* calcuate std dev of latency; we have for n values of "i" that: |
167 | * | 167 | * |
168 | * avg = (sum val_i) / n | 168 | * avg = (sum val_i) / n |
169 | * stddev = (sum (val_i - avg)^2) / (n-1) | 169 | * stddev = (sum (val_i - avg)^2) / (n-1) |
170 | * = (sum (val_i^2 - 2 avg val_i + avg^2) / (n-1) | 170 | * = (sum (val_i^2 - 2 avg val_i + avg^2) / (n-1) |