The filesizeformat() method does not consider the situation like `float('inf')` or EB, ZB and YB.

Bug #1657174 reported by liao_zd@hotmail.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
liao_zd@hotmail.com

Bug Description

Sometimes the `bytes` may get float('inf'), then it will display "inf0PB" which will be a misleading for the user. Besides, with the hardware like storage and mem getting larger, we should consider size larger than PB like EB, ZB and YB.

Changed in horizon:
assignee: nobody → liao_zd@hotmail.com (liaozd)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/421352

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/421352
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=9886be592f6fd1ec5af91f7ef9de76e27d0e083f
Submitter: Jenkins
Branch: master

commit 9886be592f6fd1ec5af91f7ef9de76e27d0e083f
Author: liaozd <email address hidden>
Date: Wed Jan 18 00:20:04 2017 +0800

    filesizeformat() does't consider the situation like `float('inf')`

        Sometimes the `bytes` may get float('inf'), then it will display "inf0PB" which will be a
        misleading for the user. Besides, with the hardware like storage and MEM getting larger
        and larger, we should consider size larger than PB like EB, ZB and YB.

    Change-Id: I830ad440e9ef854006298bd946ab8ecf9d75757a
    Closes-Bug: 1657174

Changed in horizon:
status: In Progress → Fix Released
Changed in horizon:
milestone: none → pike-1
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/horizon 12.0.0.0b1

This issue was fixed in the openstack/horizon 12.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.