DragonFly commits List (threaded) for 2010-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: dsched_fq - Avoid a rare div by 0
commit 41b0c7c370b365576c14ce2f7d37f8e255903fb4
Author: Alex Hornung <ahornung@gmail.com>
Date: Tue Apr 13 18:47:51 2010 +0000
dsched_fq - Avoid a rare div by 0
* Avoid a rare division by 0 when calculating how busy the disk has
been. It seems that sometimes the total disk time is 0, so when this
happens, just assume that at least 1 us has passed.
Summary of changes:
sys/dsched/fq/dsched_fq_core.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/41b0c7c370b365576c14ce2f7d37f8e255903fb4
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]