If rounding results in -epsilon device busy %, set it to zero.
This commit is contained in:
parent
a3d266d593
commit
1455c4e2ec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113281
@ -1512,6 +1512,8 @@ devstat_compute_statistics(struct devstat *current, struct devstat *previous,
|
||||
*destld = 0;
|
||||
*destld /= etime;
|
||||
*destld *= 100;
|
||||
if (*destld < 0)
|
||||
*destld = 0;
|
||||
break;
|
||||
case DSM_QUEUE_LENGTH:
|
||||
*destu64 = current->start_count - current->end_count;
|
||||
|
Loading…
Reference in New Issue
Block a user