svn commit: r211247 - user/des/phybs
Dag-Erling Smorgrav
des at FreeBSD.org
Thu Aug 12 22:22:41 UTC 2010
Author: des
Date: Thu Aug 12 22:22:41 2010
New Revision: 211247
URL: http://svn.freebsd.org/changeset/base/211247
Log:
braino: stdout, not stdin!
Modified:
user/des/phybs/phybs.c
Modified: user/des/phybs/phybs.c
==============================================================================
--- user/des/phybs/phybs.c Thu Aug 12 22:20:20 2010 (r211246)
+++ user/des/phybs/phybs.c Thu Aug 12 22:22:41 2010 (r211247)
@@ -157,14 +157,14 @@ main(int argc, char *argv[])
maxsize = tmp;
}
- tty = isatty(STDIN_FILENO);
+ tty = isatty(STDOUT_FILENO);
if ((fd = open(device, opt_w ? O_RDWR : O_RDONLY)) == -1)
err(1, "open(%s)", device);
printf("%8s%8s%8s%8s%12s%8s%8s\n",
"count", "size", "offset", "step",
"msec", "tps", "kBps");
- for (size_t size = minsize; size <= maxsize; size *= 2) {
+ for (size_t size = minsize; size < maxsize; size *= 2) {
printf("\n");
scan(fd, size, 0, STEP, total / size);
for (off_t offset = BSIZE; offset <= (off_t)size; offset *= 2)
More information about the svn-src-user
mailing list