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

Stage view displays large artifact sizes incorrectly

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The display of artifact sizes in the stage view popover for artifacts larger than 1024000 bytes is inconsistent with that of the "last successful artifacts" view. Artifacts appear to have become larger when they haven't.

      For example, I have a 7366340-byte artifact which is displayed as 7.18MB in the stage view, and correctly displayed as 7.03MB elsewhere.

      This is due to the following code in ui/src/main/js/util/formatters.js:

      var KB = 1024;
      var MB = KB * 1000;
      var GB = MB * 1000;
      var TB = GB * 1000;
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Sam Van Oort
          Path:
          ui/src/main/js/util/formatters.js
          http://jenkins-ci.org/commit/pipeline-stage-view-plugin/2eb2a5c3f91d2b78c20462b40483f92da36332e8
          Log:
          Fix calculation of data sizes (1024 kB per MB, etc) - JENKINS-33714

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Sam Van Oort Path: ui/src/main/js/util/formatters.js http://jenkins-ci.org/commit/pipeline-stage-view-plugin/2eb2a5c3f91d2b78c20462b40483f92da36332e8 Log: Fix calculation of data sizes (1024 kB per MB, etc) - JENKINS-33714
          Hide
          svanoort Sam Van Oort added a comment -

          Verified and fixed

          Show
          svanoort Sam Van Oort added a comment - Verified and fixed
          Hide
          svanoort Sam Van Oort added a comment -

          Released with v 1.4

          Show
          svanoort Sam Van Oort added a comment - Released with v 1.4

            People

            • Assignee:
              svanoort Sam Van Oort
              Reporter:
              pderrin Philip Derrin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: