Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
2401c3ec
Commit
2401c3ec
authored
Sep 13, 2011
by
antirez
Browse files
added a newline for code readability
parent
8d9804bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
2401c3ec
...
@@ -530,6 +530,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
...
@@ -530,6 +530,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
* in objects at every object access, and accuracy is not needed.
* in objects at every object access, and accuracy is not needed.
* To access a global var is faster than calling time(NULL) */
* To access a global var is faster than calling time(NULL) */
server
.
unixtime
=
time
(
NULL
);
server
.
unixtime
=
time
(
NULL
);
/* We have just 22 bits per object for LRU information.
/* We have just 22 bits per object for LRU information.
* So we use an (eventually wrapping) LRU clock with 10 seconds resolution.
* So we use an (eventually wrapping) LRU clock with 10 seconds resolution.
* 2^22 bits with 10 seconds resoluton is more or less 1.5 years.
* 2^22 bits with 10 seconds resoluton is more or less 1.5 years.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment