Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
35dc5e8e
Commit
35dc5e8e
authored
Jun 11, 1992
by
Per Cederqvist
Browse files
Report cache sizes in memory-usage.
parent
cd365ae0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server/simple-cache.c
View file @
35dc5e8e
/*
* $Id: simple-cache.c,v 0.2
2
1992/0
4/09 09:21:11
ceder Exp $
* $Id: simple-cache.c,v 0.2
3
1992/0
6/11 19:16:47
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -33,7 +33,7 @@
* New save algorithm by ceder.
*/
static
char
*
rcsid
=
"$Id: simple-cache.c,v 0.2
2
1992/0
4/09 09:21:11
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: simple-cache.c,v 0.2
3
1992/0
6/11 19:16:47
ceder Exp $"
;
...
...
@@ -2101,21 +2101,24 @@ dump_cache_stats(FILE *fp)
{
fprintf
(
fp
,
"---simple-cache.c:
\n
"
);
fprintf
(
fp
,
"
\t
Persons:
\n
"
"
\t
Persons
(cache size: %d)
:
\n
"
"
\t
hits: %lu
\n
"
"
\t
miss: %lu
\n
"
,
CACHE_PERSONS
,
pers_mcb
->
hits
,
pers_mcb
->
misses
);
fprintf
(
fp
,
"
\t
Conferences:
\n
"
"
\t
Conferences
(cache size: %d)
:
\n
"
"
\t
hits: %lu
\n
"
"
\t
miss: %lu
\n
"
,
CACHE_CONFERENCES
,
conf_mcb
->
hits
,
conf_mcb
->
misses
);
fprintf
(
fp
,
"
\t
Text_stats:
\n
"
"
\t
Text_stats
(cache size: %d)
:
\n
"
"
\t
hits: %lu
\n
"
"
\t
miss: %lu
\n
"
,
CACHE_TEXT_STATS
,
text_mcb
->
hits
,
text_mcb
->
misses
);
}
...
...
Write
Preview
Supports
Markdown
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