Project

General

Profile

Bug #8796

Correct string to GB conversion

Added by Tomer Brisker almost 7 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Calculation is incorrect, uses 3^10 as kb->gb for example.
Also use constants to avoid recalculating powers every call.


Related issues

Related to Foreman - Bug #1676: Memory size in factor of 1000 (should be 1024)Closed2012-06-11

Associated revisions

Revision 02cf7a53 (diff)
Added by Tomer Brisker almost 7 years ago

Fixes #8796 - Fix to_gb size calculation and constentize

History

#1 Updated by Tomer Brisker almost 7 years ago

  • Related to Bug #1676: Memory size in factor of 1000 (should be 1024) added

#2 Updated by The Foreman Bot almost 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/2039 added
  • Pull request deleted ()

#3 Updated by Anonymous almost 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#4 Updated by Dominic Cleal almost 7 years ago

  • Category set to Web Interface
  • Legacy Backlogs Release (now unused) set to 28

Also available in: Atom PDF