4922: Too much precision on memcached stats


What version are you running?


What's the URL of the page containing the problem?


What steps will reproduce the problem?

  1. configure & run memcached for ReviewBoard
  2. visit the Admin dashboard
  3. observe the "Server Cache" panel

What is the expected output? What do you see instead?

The percentages for "Cache Hits" and "Cache misses" have too many digits of precision. Mine currently shows 85.33321517192485%.

I'd expect this to be rounded. Perhaps like 85.33%.

Uptime has a similar problem. Min currenlty shows "17.427500000000002 hours".

Again, I'd expect this to be rounded. Perhaps "17.43 hours".

What operating system are you using? What browser?

ReviewBoard server is running on RHEL 7.

Browser is running on Windows 10. Using Chrome.

Please provide any additional information below.

Reviewboard is running with python 3.9.1.