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
67dd25e8
Commit
67dd25e8
authored
Apr 09, 1992
by
Per Cederqvist
Browse files
end_of_atomic: Call limit_cache_size() only in 1% of the cases.
parent
1ef7e0e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/disk-end-of-atomic.c
View file @
67dd25e8
/*
* $Id: disk-end-of-atomic.c,v 0.
6
1992/0
2/26 18:45:11
ceder Exp $
* $Id: disk-end-of-atomic.c,v 0.
7
1992/0
4/09 09:19:43
ceder Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -36,7 +36,7 @@
* to forget old texts.
*/
static
char
*
rcsid
=
"$Id: disk-end-of-atomic.c,v 0.
6
1992/0
2/26 18:45:11
ceder Exp $"
;
static
char
*
rcsid
=
"$Id: disk-end-of-atomic.c,v 0.
7
1992/0
4/09 09:19:43
ceder Exp $"
;
#include
<kom-types.h>
...
...
@@ -51,9 +51,16 @@ long
end_of_atomic
(
Bool
idle
)
{
int
timeout
=
TIMEOUT
;
static
int
limit
=
0
;
free_tmp
();
cache_limit_size
();
/* FIXME-- make limit_text_stat smarter instead. */
if
(
limit
++
>
100
)
{
cache_limit_size
();
limit
=
0
;
}
if
(
idle
)
if
(
garb_text
()
==
FALSE
)
...
...
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