summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>2000-07-01 21:28:49 +0000
committern_hibma <n_hibma@FreeBSD.org>2000-07-01 21:28:49 +0000
commit7f576169bf2d869115464b4fd28ae8c29723dcd4 (patch)
tree47c2c57936b74ea9e0d10ede83edfd43ab761632 /sbin/camcontrol
parent018c31c01e2a233502dd2ec81c18db6e7fdc151a (diff)
downloadFreeBSD-src-7f576169bf2d869115464b4fd28ae8c29723dcd4.zip
FreeBSD-src-7f576169bf2d869115464b4fd28ae8c29723dcd4.tar.gz
Print the correct speed when speed is less than 1MB/s.
Fixed in cam_xpt.c, r1.81 Submitted by: Gerd Knops <gerti@bitart.com>
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r--sbin/camcontrol/camcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index 18200d6..fcacca4 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -911,7 +911,7 @@ scsixferrate(struct cam_device *device)
mb, speed % 1000);
else
fprintf(stdout, "%dKB/s transfers ",
- (speed % 1000) * 1000);
+ speed);
if (((ccb->cts.valid & CCB_TRANS_SYNC_OFFSET_VALID) != 0)
&& (ccb->cts.sync_offset != 0))
OpenPOWER on IntegriCloud