Bug #124

bytesToHumanReadable returns " 1234(null)"

Added by kervala almost 10 years ago. Updated almost 8 years ago.

Status:Closed Start date:09/22/2008
Priority:Normal Due date:
Assignee:kervala % Done:

100%

Category:NeL: General
Target version:Version 0.7.0 Estimated time:1.00 hour

Description

Function "NLMISC::bytesToHumanReadable (uint64 bytes)" is returning an incorrect string.

Instead of "1234MB" it's returning "1234(null)".

History

#1 Updated by kervala almost 10 years ago

"%u" is not a correct formatting syntax for uint64 so the units string hadn't the correct offset.

#2 Updated by kervala almost 10 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Applied in changeset r335.

#3 Updated by kervala almost 10 years ago

I added TB for Terabyte since it's becoming more and more common.

The function with a string parameter is now using the modified one.

#4 Updated by kervala over 9 years ago

  • Status changed from Resolved to Closed

#5 Updated by kervala almost 8 years ago

  • Project changed from NeL to Ryzom
  • Category deleted (Misc)
  • Target version deleted (Version 0.7.0)

#6 Updated by kervala almost 8 years ago

  • Category set to NeL: General
  • Target version set to Version 0.7.0

Also available in: Atom PDF