← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1657174] Re: The filesizeformat() method does not consider the situation like `float('inf')` or EB, ZB and YB.

 

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 <liao_zd@xxxxxxxxxxx>
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

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1657174

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

Status in OpenStack Dashboard (Horizon):
  Fix Released

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1657174/+subscriptions


References