Refine the comment of dictRehashMilliseconds func

This commit is contained in:
lmatt-bit 2016-04-21 21:45:58 +08:00
parent 4cbe044439
commit 6b254bc348
1 changed files with 3 additions and 1 deletions

View File

@ -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;