dsched_fq - Avoid a rare div by 0
authorAlex Hornung <ahornung@gmail.com>
Tue, 13 Apr 2010 18:47:51 +0000 (18:47 +0000)
committerAlex Hornung <ahornung@gmail.com>
Thu, 15 Apr 2010 20:24:51 +0000 (20:24 +0000)
commit41b0c7c370b365576c14ce2f7d37f8e255903fb4
treed570dc493ae9ac91da2ad9ef9c663298cffad012
parentedd247d31a4c3de0b873a975b4cb8230f858031f
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.
sys/dsched/fq/dsched_fq_core.c