Human readable file size method returns ",00" for files with byte length 0

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      The human readable file size method hudson.Functions.humanReadableByteSize(long) returns ",00" for empty files (zero byte length)
      (see attached screenshot jenkins_fileSize_original.png).
      It should return "0" instead.

      Also bytes should not be shown in decimal format.

      The second screenshot (jenkins_fileSize_new.png) shows the file size format after implementing the proposed changes.

            Assignee:
            Fred G
            Reporter:
            Fred G
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: