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
5fba9f71
Commit
5fba9f71
authored
Apr 07, 2009
by
Bob Potter
Browse files
64bit fixes for usedmemory
parent
ce7bef07
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
5fba9f71
...
...
@@ -205,7 +205,7 @@ struct redisServer {
int
cronloops
;
/* number of times the cron function run */
list
*
objfreelist
;
/* A list of freed objects to avoid malloc() */
time_t
lastsave
;
/* Unix time of last save succeeede */
in
t
usedmemory
;
/* Used memory in megabytes */
size_
t
usedmemory
;
/* Used memory in megabytes */
/* Fields used only for stats */
time_t
stat_starttime
;
/* server start time */
long
long
stat_numcommands
;
/* number of processed commands */
...
...
@@ -664,7 +664,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
/* Show information about connected clients */
if
(
!
(
loops
%
5
))
{
redisLog
(
REDIS_DEBUG
,
"%d clients connected (%d slaves), %
d
bytes in use"
,
redisLog
(
REDIS_DEBUG
,
"%d clients connected (%d slaves), %
zu
bytes in use"
,
listLength
(
server
.
clients
)
-
listLength
(
server
.
slaves
),
listLength
(
server
.
slaves
),
server
.
usedmemory
,
...
...
@@ -3202,7 +3202,7 @@ static void infoCommand(redisClient *c) {
"redis_version:%s
\r\n
"
"connected_clients:%d
\r\n
"
"connected_slaves:%d
\r\n
"
"used_memory:%
d
\r\n
"
"used_memory:%
zu
\r\n
"
"changes_since_last_save:%lld
\r\n
"
"last_save_time:%d
\r\n
"
"total_connections_received:%lld
\r\n
"
...
...
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