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

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

    • 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.

          [JENKINS-16630] Human readable file size method returns ",00" for files with byte length 0

          Fred G created issue -
          Fred G made changes -
          Link New: This issue is related to JENKINS-7798 [ JENKINS-7798 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 147454 ] New: JNJira + In-Review [ 192417 ]

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

              Created:
              Updated:
              Resolved: