Module Name:    src
Committed By:   joerg
Date:           Mon Apr 16 10:48:27 UTC 2012

Modified Files:
        src/libexec/lfs_cleanerd: lfs_cleanerd.c

Log Message:
Make load_threshold double and restore original value of 0.2.
>From NAKAJIMA Yoshihiro.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/libexec/lfs_cleanerd/lfs_cleanerd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/libexec/lfs_cleanerd/lfs_cleanerd.c
diff -u src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.30 src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.31
--- src/libexec/lfs_cleanerd/lfs_cleanerd.c:1.30	Thu Apr 12 11:46:16 2012
+++ src/libexec/lfs_cleanerd/lfs_cleanerd.c	Mon Apr 16 10:48:27 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_cleanerd.c,v 1.30 2012/04/12 11:46:16 joerg Exp $	 */
+/* $NetBSD: lfs_cleanerd.c,v 1.31 2012/04/16 10:48:27 joerg Exp $	 */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
 /* XXX these top few should really be fs-specific */
 int use_fs_idle;	/* Use fs idle rather than cpu idle time */
 int use_bytes;		/* Use bytes written rather than segments cleaned */
-int load_threshold;	/* How idle is idle (CPU idle) */
+double load_threshold;	/* How idle is idle (CPU idle) */
 int atatime;		/* How many segments (bytes) to clean at a time */
 
 int nfss;		/* Number of filesystems monitored by this cleanerd */
@@ -1365,7 +1365,7 @@ lfs_cleaner_main(int argc, char **argv)
 	 */
 	atatime	 = 1;
 	segwait_timeout = 300; /* Five minutes */
-	load_threshold	= 0;
+	load_threshold	= 0.2;
 	stat_report	= 0;
 	inval_segment	= -1;
 	copylog_filename = NULL;

Reply via email to