~vbernat/libmemcached/fix-memaslap-tps

Viewing all changes in revision 1111.

  • Committer: Vincent Bernat
  • Date: 2014-01-11 19:55:42 UTC
  • Revision ID: bernat@luffy.cx-20140111195542-wjtrq3u0nkt3c76a
Fix how current tps is computed.

With a low current TPS, the division will lead to a value of 0 TPS. We
multiply first, then divide to avoid this. This is a regression
introduced by fixing LP #613342. We also cast to uint64_t earlier.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: