Small cosmetic changes (including option names)

MAINT_6_0
Stephane Bortzmeyer 18 years ago
parent 470fcc8f5e
commit f5c5e13541

@ -223,8 +223,8 @@ values (precedence on Linux, for instance).
.SH BUGS .SH BUGS
See the TODO file or SourceForge bug tracking system at See SourceForge bug tracking system at
<http://sourceforge.net/bugs/?group_id=4581>. <http://sourceforge.net/tracker/?group_id=4581&atid=104581>.
.SH SEE ALSO .SH SEE ALSO
See the README for information about other network measurements programs. See the README for information about other network measurements programs.

@ -189,9 +189,9 @@ main(argc, argv)
{"ipv6", '6', POPT_ARG_NONE, NULL, '6'}, {"ipv6", '6', POPT_ARG_NONE, NULL, '6'},
{"module", 'm', POPT_ARG_STRING, &plugin_name, 'm', {"module", 'm', POPT_ARG_STRING, &plugin_name, 'm',
"Loads the given plugin"}, "Loads the given plugin"},
{"dataonly", 'D', POPT_ARG_NONE, NULL, 'D'}, {"data-only", 'D', POPT_ARG_NONE, NULL, 'D'},
{"numstddev", 'N', POPT_ARG_INT, &n_stddev, 'N', {"num-std-dev", 'N', POPT_ARG_INT, &n_stddev, 'N',
"Number of stddeviations to classify outliers"}, "Number of standard deviations to classify outliers"},
POPT_TABLEEND POPT_TABLEEND
}; };
poptContext poptcon; poptContext poptcon;
@ -690,7 +690,7 @@ main(argc, argv)
if (smtp) { if (smtp) {
sendline = "QUIT\r\n"; /* Surprises some SMTP servers which log a sendline = "QUIT\r\n"; /* Surprises some SMTP servers which log a
* frightening NOQUEUE. Anyone knows better? * frightening NOQUEUE. Anyone knows better?
* See bug #1512776 */ * * See bug #1512776 */
} else } else
#endif #endif
#ifdef ICP #ifdef ICP
@ -1226,7 +1226,7 @@ main(argc, argv)
} }
#endif #endif
} else { } else { /* UDP */
#ifdef USE_SIGACTION #ifdef USE_SIGACTION
mysigaction.sa_handler = to_alarm; mysigaction.sa_handler = to_alarm;
sigemptyset(&mysigaction.sa_mask); sigemptyset(&mysigaction.sa_mask);
@ -1526,8 +1526,9 @@ printstats()
tvstddevavg(&stddev, successes, total, results, tvstddevavg(&stddev, successes, total, results,
(double) n_stddev); (double) n_stddev);
printf printf
("Average of values within %d standard deviations: %d.%06d\n", ("Average of values within %d standard deviation%s: %d.%06d\n",
n_stddev, (int) stddev.tv_sec, (int) stddev.tv_usec); n_stddev, (n_stddev == 1 ? "" : "s"),
(int) stddev.tv_sec, (int) stddev.tv_usec);
} }
} }
} }

@ -134,6 +134,7 @@ tvstddev(out, number, average, results)
/* tvstddevavg -- Computes the average of values within a set of results where the /* tvstddevavg -- Computes the average of values within a set of results where the
* sample is within the given number of standard deviations from the average */ * sample is within the given number of standard deviations from the average */
/* TODO: IWBN to return the number of excluded outliers */
void void
tvstddevavg(out, number, average, results, n_stddev) tvstddevavg(out, number, average, results, n_stddev)
struct timeval *out; /* contains std dev on entry */ struct timeval *out; /* contains std dev on entry */

Loading…
Cancel
Save