4922: Too much precision on memcached stats

mblythe
chipx86
chipx86

What version are you running?

4.0.0-rc1

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

/admin/

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.

chipx86
#1 chipx86

This will be fixed in 4.0.1 tonight.

  • -New
    +Confirmed
  • +Release-4.0.x
  • +Component:Admin
  • +chipx86
chipx86
#2 chipx86

Fixed on release-4.0.x (28bd1cdf042f2090c4f6a41ae8f8e6cc455cc095)

  • -Confirmed
    +Fixed