Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-10059

Dashboard ignores resource value that is less than 1%

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.10.0.0
    • 4.11.0.0
    • UI
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      If the resources' percentage is less than 1, Dashboard just displays % symbol.

      In the screenshot attached, the Primary storage is 21.19GB/10.74GB which is 0.19%, but that percentage is not displayed.

      Also, in the GPU tab, it has to display 0% instead of just % when none of the GPUs are in use.

      Attachments

        Activity

          nitin-maharana Nitin Kumar Maharana added a comment - GitHub PR: https://github.com/apache/cloudstack/pull/2255

          Commit dfd01c99ef5c19596559b06ac4553ccd3e648172 in cloudstack's branch refs/heads/master from nitinkumar.maharana
          [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=dfd01c99 ]

          CLOUDSTACK-10059: Dashboard ignores resource value that is less than 1%

          Root Cause:
          The API returns the percentage value as floating point number but In UI it is converted to floor value of that number.
          Hence for values less than 1%, the value is being converted to 0% and it doesn't show the value in the UI.

          Solution:
          Removed the conversion, now it represents as it is(Floating point value).

          jira-bot ASF subversion and git services added a comment - Commit dfd01c99ef5c19596559b06ac4553ccd3e648172 in cloudstack's branch refs/heads/master from nitinkumar.maharana [ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=dfd01c99 ] CLOUDSTACK-10059 : Dashboard ignores resource value that is less than 1% Root Cause: The API returns the percentage value as floating point number but In UI it is converted to floor value of that number. Hence for values less than 1%, the value is being converted to 0% and it doesn't show the value in the UI. Solution: Removed the conversion, now it represents as it is(Floating point value).

          People

            Unassigned Unassigned
            nitin-maharana Nitin Kumar Maharana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: