Author: rfm
Date: Fri Jun 20 18:32:12 2014
New Revision: 37959

URL: http://svn.gna.org/viewcvs/gnustep?rev=37959&view=rev
Log:
Ensure the host cache is flushed

Modified:
    libs/ec/trunk/ChangeLog
    libs/ec/trunk/EcProcess.m

Modified: libs/ec/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/ChangeLog?rev=37959&r1=37958&r2=37959&view=diff
==============================================================================
--- libs/ec/trunk/ChangeLog     (original)
+++ libs/ec/trunk/ChangeLog     Fri Jun 20 18:32:12 2014
@@ -1,3 +1,9 @@
+2014-06-20  Richard Frith-Macdonald <[email protected]>
+
+       * 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 <[email protected]>
 
        * EcAlarmDestination.m: Perform all connection operations in

Modified: libs/ec/trunk/EcProcess.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/ec/trunk/EcProcess.m?rev=37959&r1=37958&r2=37959&view=diff
==============================================================================
--- libs/ec/trunk/EcProcess.m   (original)
+++ libs/ec/trunk/EcProcess.m   Fri Jun 20 18:32:12 2014
@@ -2116,6 +2116,10 @@
 - (void) ecNewMinute: (NSCalendarDate*)when
 {
   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.


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to