Show
Ignore:
Timestamp:
05/01/04 21:18:53 (11 years ago)
Author:
khali
Message:

New --rrd-no-average parameter.

Syncronize time slots with rrd.

Files:
1 modified

Legend:

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

    r1474 r2503  
    4040int logTime = 30 * 60; 
    4141int rrdTime = 5 * 60; 
     42int rrdNoAverage = 0; 
    4243int syslogFacility = LOG_LOCAL4; 
    4344int doScan = 0; 
     
    99100  "  -l, --log-interval <time> -- interval between logging sensors (default 30m)\n" 
    100101  "  -t, --rrd-interval <time> -- interval between updating RRD file (default 5m)\n" 
     102  "  -T, --rrd-no-average      -- switch RRD in non-average mode\n" 
    101103  "  -r, --rrd-file <file>     -- RRD file (default <none>)\n" 
    102104  "  -c, --config-file <file>  -- configuration file (default sensors.conf)\n" 
     
    136138  "If no chips are specified, all chip info will be printed.\n"; 
    137139 
    138 static const char *daemonShortOptions = "i:l:t:f:r:c:p:advhg:"; 
     140static const char *daemonShortOptions = "i:l:t:Tf:r:c:p:advhg:"; 
    139141 
    140142static const struct option daemonLongOptions[] = { 
     
    142144  { "log-interval", required_argument, NULL, 'l' }, 
    143145  { "rrd-interval", required_argument, NULL, 't' }, 
     146  { "rrd-no-average", no_argument, NULL, 'T' }, 
    144147  { "syslog-facility", required_argument, NULL, 'f' }, 
    145148  { "rrd-file", required_argument, NULL, 'r' }, 
     
    191194        if ((rrdTime = parseTime (optarg)) < 0) 
    192195          return -1; 
     196        break; 
     197      case 'T': 
     198        rrdNoAverage = 1; 
    193199        break; 
    194200      case 'f':