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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

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

              People

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

                Dates

                Created:
                Updated:
                Resolved: