]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: avoid negative pg stats when calculating rates 446/head
authorSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 17:37:16 +0000 (10:37 -0700)
committerSage Weil <sage@inktank.com>
Fri, 19 Jul 2013 17:39:19 +0000 (10:39 -0700)
commitc549e628a8deabf177d1f3f39da4741467555743
tree4df46ec6e90835af10c158072fd9074fd547dd5a
parent9292c18dfcabee4e6e45d2bc5b796a9b77b2a283
mon/PGMap: avoid negative pg stats when calculating rates

We periodically see strange values come out of the estimated cluster
throughput and recovery rates.  Pretty sure this is cause by feeding
negative values into the rate arithmetic and then giving the si_t
helpers mangled (sign-extended + bit shifted) values.

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PGMap.cc