Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-16630

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • core

      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.

            fredg Fred G
            fredg Fred G
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: