Ensure the host cache is flushed

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@37959 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2014-06-20 16:32:12 +00:00
parent 9f5aa018c6
commit 719c466c24
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2014-06-20 Richard Frith-Macdonald <rfm@gnu.org>
* EcProcess.m: Make sure the NSHost cache is flushed at least
once per minute (by -ecNewMinute:) so that any stale information
is replaced reasonably promptly.
2014-05-16 Richard Frith-Macdonald <rfm@gnu.org>
* EcAlarmDestination.m: Perform all connection operations in

View file

@ -2117,6 +2117,10 @@ NSLog(@"Ignored attempt to set timer interval to %g ... using 10.0", interval);
{
struct mallinfo info;
/* We want to be sure we work with reasonably up to date information.
*/
[NSHost flushHostCache];
info = mallinfo();
/* Do initial population so we can work immediately.
*/