mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
Swappability bug due to a typo fixed thanks to code review by Felix Geisendörfer @felixge
This commit is contained in:
parent
be0af2f0ec
commit
c8c72447f6
2
redis.c
2
redis.c
@ -7560,7 +7560,7 @@ static double computeObjectSwappability(robj *o) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
return (double)asize*log(1+asize);
|
||||
return (double)age*log(1+asize);
|
||||
}
|
||||
|
||||
/* Try to swap an object that's a good candidate for swapping.
|
||||
|
@ -952,7 +952,6 @@ proc main {server port} {
|
||||
$r sort tosort {DESC}
|
||||
} [lsort -decreasing -integer $res]
|
||||
|
||||
while 1 {
|
||||
test {SORT speed, sorting 10000 elements list using BY, 100 times} {
|
||||
set start [clock clicks -milliseconds]
|
||||
for {set i 0} {$i < 100} {incr i} {
|
||||
@ -963,7 +962,7 @@ while 1 {
|
||||
flush stdout
|
||||
format {}
|
||||
} {}
|
||||
}
|
||||
|
||||
test {SORT speed, sorting 10000 elements list directly, 100 times} {
|
||||
set start [clock clicks -milliseconds]
|
||||
for {set i 0} {$i < 100} {incr i} {
|
||||
|
Loading…
Reference in New Issue
Block a user