From: wessels <> Date: Fri, 6 Oct 2000 11:21:58 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1821 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a0e1b49c5afad61b386eeee79cf59db9d4e695e;p=thirdparty%2Fsquid.git DW: - Only print the debugging in storeDiskdDirSync once per second. --- diff --git a/src/fs/diskd/store_dir_diskd.cc b/src/fs/diskd/store_dir_diskd.cc index 8a957cc209..7e06f48192 100644 --- a/src/fs/diskd/store_dir_diskd.cc +++ b/src/fs/diskd/store_dir_diskd.cc @@ -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); } }