Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1556

Value of num_objects is float but should be int

    XMLWordPrintable

    Details

      Description

      The pool performance api provides multiple objects. One of these objects is num_objects. It shows the number of objects that are stored in each pool.

      Normally, the values of num_objects should be integer, but they are float.

      If we run our plugin directly via the console it returns the correct type.
      However, the data in the rrd files are incorrect (the third value is num_objects):

      <!-- 2016-09-22 08:05:00 CEST / 1474524300 --> <row><v>1.1832383242e+09</v><v>8.9088009912e+09</v><v>2.8210600000e+02</v><v>3.4368420000e+01</v></row>
      <!-- 2016-09-22 08:10:00 CEST / 1474524600 --> <row><v>1.2264144896e+09</v><v>8.9278730076e+09</v><v>2.9240000000e+02</v><v>3.0621920000e+01</v></row>
      <!-- 2016-09-22 08:15:00 CEST / 1474524900 --> <row><v>3.4144151142e+08</v><v>9.7810068439e+09</v><v>8.1406000000e+01</v><v>3.5829260000e+01</v></row>
      <!-- 2016-09-22 08:20:00 CEST / 1474525200 --> <row><v>1.3672676065e+09</v><v>8.6902070395e+09</v><v>3.2598200000e+02</v><v>3.8767520000e+01</v></row>
      <!-- 2016-09-22 08:25:00 CEST / 1474525500 --> <row><v>1.3737939436e+09</v><v>8.6872520786e+09</v><v>3.2753800000e+02</v><v>3.5328020000e+01</v></row>
      

      For me it seems to be, that the values are saved as an exponential type.

        Attachments

        1. datatype.png
          datatype.png
          4 kB
        2. rrd.xml
          5.63 MB

          Issue Links

            Activity

              People

              Assignee:
              tdehler Dehler, Tatjana
              Reporter:
              skrah Krah, Sebastian
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: