Changeset 1474 for lm-sensors/trunk/prog/sensord/args.c
- Timestamp:
- 07/31/02 16:20:29 (11 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/prog/sensord/args.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/prog/sensord/args.c
r1357 r1474 44 44 int doSet = 0; 45 45 int doCGI = 0; 46 int doLoad = 0; 46 47 int debug = 0; 47 48 sensors_chip_name chipNames[MAX_CHIP_NAMES]; … … 103 104 " -f, --syslog-facility <f> -- syslog facility to use (default local4)\n" 104 105 " -g, --rrd-cgi <img-dir> -- output an RRD CGI script and exit\n" 106 " -a, --load-average -- include load average in RRD file\n" 105 107 " -d, --debug -- display some debug information\n" 106 108 " -v, --version -- display version and exit\n" … … 117 119 "If unspecified, no RRD (round robin database) is used. If specified and the\n" 118 120 "file does not exist, it will be created. For RRD updates to be successful,\n" 119 "the RRD file configuration must EXACTLY match the sensors that are used.\n"; 121 "the RRD file configuration must EXACTLY match the sensors that are used. If\n" 122 "your configuration changes, delete the old RRD file and restart sensord.\n"; 120 123 121 124 static const char *appSyntax = … … 133 136 "If no chips are specified, all chip info will be printed.\n"; 134 137 135 static const char *daemonShortOptions = "i:l:t:f:r:c:p: dvhg:";138 static const char *daemonShortOptions = "i:l:t:f:r:c:p:advhg:"; 136 139 137 140 static const struct option daemonLongOptions[] = { … … 144 147 { "pid-file", required_argument, NULL, 'p' }, 145 148 { "rrd-cgi", required_argument, NULL, 'g' }, 149 { "load-average", no_argument, NULL, 'a' }, 146 150 { "debug", no_argument, NULL, 'd' }, 147 151 { "version", no_argument, NULL, 'v' }, … … 193 197 break; 194 198 case 'a': 195 doScan = 1; 199 if (isDaemon) 200 doLoad = 1; 201 else 202 doScan = 1; 196 203 break; 197 204 case 's':
