]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
DW:
authorwessels <>
Fri, 6 Oct 2000 11:21:58 +0000 (11:21 +0000)
committerwessels <>
Fri, 6 Oct 2000 11:21:58 +0000 (11:21 +0000)
 - Only print the debugging in storeDiskdDirSync once per second.

src/fs/diskd/store_dir_diskd.cc

index 8a957cc209a6c969b8ea87b1c83674a8b2a8a946..7e06f481926a1f537e90906016e521571caf9a82 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_diskd.cc,v 1.17 2000/10/03 15:31:40 wessels Exp $
+ * $Id: store_dir_diskd.cc,v 1.18 2000/10/06 05:21:58 wessels Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -470,9 +470,14 @@ storeDiskdStats(StoreEntry * sentry)
 static void
 storeDiskdDirSync(SwapDir * SD)
 {
+    static time_t lastmsg = 0;
     diskdinfo_t *diskdinfo = SD->fsdata;
     while (diskdinfo->away > 0) {
-       debug(47, 1) ("storeDiskdDirSync: %d messages away\n", diskdinfo->away);
+       if (squid_curtime > lastmsg) {
+           debug(47, 1) ("storeDiskdDirSync: %d messages away\n",
+               diskdinfo->away);
+           lastmsg = squid_curtime;
+       }
        storeDiskdDirCallback(SD);
     }
 }