[89893] trunk/base/src/macports1.0/macports.tcl

jmr at macports.org jmr at macports.org
Mon Feb 13 21:31:41 PST 2012


Revision: 89893
          http://trac.macports.org/changeset/89893
Author:   jmr at macports.org
Date:     2012-02-13 21:31:41 -0800 (Mon, 13 Feb 2012)
Log Message:
-----------
there's actually no point unsetting expired ping cache entries when they're accessed

Modified Paths:
--------------
    trunk/base/src/macports1.0/macports.tcl

Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl	2012-02-14 05:17:50 UTC (rev 89892)
+++ trunk/base/src/macports1.0/macports.tcl	2012-02-14 05:31:41 UTC (rev 89893)
@@ -4383,8 +4383,6 @@
         # expire entries after 1 day
         if {[expr [clock seconds] - [lindex $ping_cache($host) 1]] <= 86400} {
             return [lindex $ping_cache($host) 0]
-        } else {
-            unset ping_cache($host)
         }
     }
     return {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120213/5172a156/attachment-0001.html>


More information about the macports-changes mailing list