Run uname for the -v/--version flag. Also, show version and uname for

the -V/--verbose flag.  Still debating whether version/uname should be
shown by default.
This commit is contained in:
jef 2012-11-12 10:01:26 -08:00
parent 6b7db8f774
commit 0115558217
2 changed files with 6 additions and 1 deletions

View File

@ -513,6 +513,7 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
break;
case 'v':
printf(version);
system("uname -a");
exit(0);
case 'h':
default:
@ -530,6 +531,10 @@ iperf_parse_arguments(struct iperf_test *test, int argc, char **argv)
i_errno = IENOROLE;
return (-1);
}
if (test->verbose) {
printf(version);
system("uname -a");
}
return (0);
}

View File

@ -8,4 +8,4 @@
*/
#define IPERF_VERSION "3.0-BETA5"
#define IPERF_VERSION_DATE "9 Nov 2012"
#define IPERF_VERSION_DATE "12 Nov 2012"