Bug #49143

Petabytes missing in VH f:format.bytes()

Added by Stefan Neufeind about 2 years ago. Updated about 2 years ago.

Status:Resolved Start date:2013-06-15
Priority:Must have Due date:
Assigned To:Stefan Neufeind % Done:

100%

Category:ViewHelpers
Target version:-
Has patch:No Affected Flow version:Git master

Description

Peta (PB) is missing newly merged feature.

1000 k kilo
1000^2 M mega
1000^3 G giga
1000^4 T tera
1000^5 P peta
1000^6 E exa
1000^7 Z zetta
1000^8 Y yotta

(thanks go to Philipp Gampe for discovering this)


Related issues

related to TYPO3.Fluid - Feature #49128: ViewHelper to display file sizes Resolved 2013-06-14

Associated revisions

Revision 27e6ebe6
Added by Stefan Neufeind about 2 years ago

[BUGFIX] format.bytes ViewHelper: add peta-byte and support large numbers

In the row of prefixes for multiples "peta" is missing between
"tera" and "exa".

pow() will use float if the numbers require it (too large). So we
also need to allow float-values to support larger numbers.

Change-Id: I5ef0935baaad324104329e486d26860391bd64e2
Fixes: #49143
Releases: master

History

#1 Updated by Stefan Neufeind about 2 years ago

  • Assigned To set to Stefan Neufeind

working on it

#2 Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21446

#3 Updated by Gerrit Code Review about 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21446

#4 Updated by Gerrit Code Review about 2 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/21446

#5 Updated by Stefan Neufeind about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF