Remove line cache from memory after 10 minutes of inactivity.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@345 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-14 20:12:51 +00:00 committed by cras
commit 84efea6a6a
2 changed files with 41 additions and 13 deletions

View file

@ -28,6 +28,8 @@ typedef struct {
} LINE_CACHE_SUB_REC;
typedef struct {
time_t last_access;
int count; /* number of real lines */
LINE_CACHE_SUB_REC *lines;
} LINE_CACHE_REC;