From 6b254bc348f98f78ff0ed268038efd6814ddfbf1 Mon Sep 17 00:00:00 2001 From: lmatt-bit Date: Thu, 21 Apr 2016 21:45:58 +0800 Subject: [PATCH] Refine the comment of dictRehashMilliseconds func --- src/dict.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dict.c b/src/dict.c index 4425a94e8..7d61452c1 100644 --- a/src/dict.c +++ b/src/dict.c @@ -294,7 +294,9 @@ long long timeInMilliseconds(void) { return (((long long)tv.tv_sec)*1000)+(tv.tv_usec/1000); } -/* Rehash for an amount of time between ms milliseconds and ms+1 milliseconds */ +/* Rehash in ms+"delta" milliseconds. The value of "delta" is larger + * than 0, and is smaller than 1 in most cases. The exact upper bound + * depends on the running time of dictRehash(d,100).*/ int dictRehashMilliseconds(dict *d, int ms) { long long start = timeInMilliseconds(); int rehashes = 0;