Show
Ignore:
Timestamp:
07/31/02 16:20:29 (11 years ago)
Author:
merlin
Message:

Update to support logging of the load average to the round-robin
database.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/sensord/args.c

    r1357 r1474  
    4444int doSet = 0; 
    4545int doCGI = 0; 
     46int doLoad = 0; 
    4647int debug = 0; 
    4748sensors_chip_name chipNames[MAX_CHIP_NAMES]; 
     
    103104  "  -f, --syslog-facility <f> -- syslog facility to use (default local4)\n" 
    104105  "  -g, --rrd-cgi <img-dir>   -- output an RRD CGI script and exit\n" 
     106  "  -a, --load-average        -- include load average in RRD file\n" 
    105107  "  -d, --debug               -- display some debug information\n" 
    106108  "  -v, --version             -- display version and exit\n" 
     
    117119  "If unspecified, no RRD (round robin database) is used. If specified and the\n" 
    118120  "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"; 
    120123 
    121124static const char *appSyntax = 
     
    133136  "If no chips are specified, all chip info will be printed.\n"; 
    134137 
    135 static const char *daemonShortOptions = "i:l:t:f:r:c:p:dvhg:"; 
     138static const char *daemonShortOptions = "i:l:t:f:r:c:p:advhg:"; 
    136139 
    137140static const struct option daemonLongOptions[] = { 
     
    144147  { "pid-file", required_argument, NULL, 'p' }, 
    145148  { "rrd-cgi", required_argument, NULL, 'g' }, 
     149  { "load-average", no_argument, NULL, 'a' }, 
    146150  { "debug", no_argument, NULL, 'd' }, 
    147151  { "version", no_argument, NULL, 'v' }, 
     
    193197        break; 
    194198      case 'a': 
    195         doScan = 1; 
     199        if (isDaemon) 
     200          doLoad = 1; 
     201        else 
     202          doScan = 1; 
    196203        break; 
    197204      case 's':