summaryrefslogtreecommitdiff
path: root/scheduler/network.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-11-16 17:01:30 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2006-11-16 17:01:30 +0000
commit411affcf6ae840dbe82786a1f42c16cb3127d20f (patch)
tree0cdee41b9d5f1506cf880182ea80cf30f0713be7 /scheduler/network.c
parent26d47ec6888969c3a3957f55c9eed0778813b94a (diff)
downloadcups-411affcf6ae840dbe82786a1f42c16cb3127d20f.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@245 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/network.c')
-rw-r--r--scheduler/network.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/scheduler/network.c b/scheduler/network.c
index eb89b1217..e63d4f44e 100644
--- a/scheduler/network.c
+++ b/scheduler/network.c
@@ -1,5 +1,5 @@
/*
- * "$Id: network.c 5428 2006-04-18 20:45:30Z mike $"
+ * "$Id: network.c 6090 2006-11-14 16:35:27Z mike $"
*
* Network interface functions for the Common UNIX Printing System
* (CUPS) scheduler.
@@ -60,7 +60,8 @@ cupsdNetIFFind(const char *name) /* I - Name of interface */
* Update the interface list as needed...
*/
- cupsdNetIFUpdate();
+ if (NetIFUpdate)
+ cupsdNetIFUpdate();
/*
* Search for the named interface...
@@ -113,14 +114,13 @@ cupsdNetIFUpdate(void)
/*
- * Update the network interface list no more often than once a
- * minute...
+ * Only update the list if we need to...
*/
- if ((time(NULL) - NetIFTime) < 60)
+ if (!NetIFUpdate)
return;
- NetIFTime = time(NULL);
+ NetIFUpdate = 0;
/*
* Free the old interfaces...
@@ -314,5 +314,5 @@ compare_netif(cupsd_netif_t *a, /* I - First network interface */
/*
- * End of "$Id: network.c 5428 2006-04-18 20:45:30Z mike $".
+ * End of "$Id: network.c 6090 2006-11-14 16:35:27Z mike $".
*/