git: dsched_fq - Avoid a rare div by 0

看板DFBSD_commit作者時間16年前 (2010/04/16 04:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1BntV9zs (DFBSD_commit)