]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
dashboard: Return float if rate not available 22313/head
authorBoris Ranto <branto@redhat.com>
Tue, 29 May 2018 21:32:48 +0000 (23:32 +0200)
committerBoris Ranto <branto@redhat.com>
Wed, 30 May 2018 06:38:18 +0000 (08:38 +0200)
commit58ffd146261586b5598c946fd730df0b223294e7
tree039860db9cf967906d2b9ffc49835928f51cd66d
parent209f6c7f2f03ced05dddd04a66f0e790d7c32ea9
dashboard: Return float if rate not available

This fixes a test case issue when some of the data might not be
available during the test, yet. The test expects the second value to be
JFloat but that fails because get_rates return an int in that case.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/pybind/mgr/dashboard/services/ceph_service.py