Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/histolog.c @ 1274:c33b5b6fbf08
Fix screen refresh issue (spotted by franky)
The message "Reading <JID> history file...", when loading a big history file,
was displayed too late.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 22 Aug 2007 22:19:33 +0200 |
parents | 2de8f8ba1f34 |
children | e42f48103609 |
comparison
equal
deleted
inserted
replaced
1273:b17ab2782ce5 | 1274:c33b5b6fbf08 |
---|---|
191 } | 191 } |
192 | 192 |
193 // If file is large (> 3MB here), display a message to inform the user | 193 // If file is large (> 3MB here), display a message to inform the user |
194 // (it can take a while...) | 194 // (it can take a while...) |
195 if (!fstat(fileno(fp), &bufstat)) { | 195 if (!fstat(fileno(fp), &bufstat)) { |
196 if (bufstat.st_size > 3145728) | 196 if (bufstat.st_size > 3145728) { |
197 scr_LogPrint(LPRINT_LOGNORM, "Reading <%s> history file...", bjid); | 197 scr_LogPrint(LPRINT_NORMAL, "Reading <%s> history file...", bjid); |
198 scr_DoUpdate(); | |
199 } | |
198 } | 200 } |
199 | 201 |
200 max_num_of_blocks = get_max_history_blocks(); | 202 max_num_of_blocks = get_max_history_blocks(); |
201 | 203 |
202 starttime = 0L; | 204 starttime = 0L; |