git: dsched_fq - Avoid a rare div by 0

Alex Hornung alexh at crater.dragonflybsd.org
Thu Apr 15 13:26:39 PDT 2010


commit 41b0c7c370b365576c14ce2f7d37f8e255903fb4
Author: Alex Hornung <ahornung at 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





More information about the Commits mailing list