summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-11 19:24:38 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-11 19:24:38 +0000
commite7a75e88b7a2a941b782e560e7b7e4f4d4ad61f4 (patch)
tree727b9aae2af4a56e24c09335006ae200859f30f0 /src
parentb290ee86db69a066fa6dc1348adead95fca25ad8 (diff)
-allow UINT64_MAX without crashing
Diffstat (limited to 'src')
-rw-r--r--src/ats/gnunet-service-ats_normalization.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ats/gnunet-service-ats_normalization.c b/src/ats/gnunet-service-ats_normalization.c
index 017e14327..64aef5492 100644
--- a/src/ats/gnunet-service-ats_normalization.c
+++ b/src/ats/gnunet-service-ats_normalization.c
@@ -86,7 +86,7 @@ update_avg (uint64_t current_val,
}
}
if (0 == count)
- ni->avg = curent_val; /* must be UINT64_MAX */
+ ni->avg = current_val; /* must be UINT64_MAX */
else
ni->avg = sum / count;
}