Skip to content

Wen calculating 95th percentile, floor() maybe used instead of ceil() incorrectly #4963

@htyypt

Description

@htyypt

I have three sets of CACTI:

  1. 0.8.8a+php5.3.3+rrdtool1.4.9
  2. 0.8.8h+php5.6.40+rrdtool1.4.8
  3. 1.2.20+php7.2+rrdtool1.7.2

For example, the 5-minute data in September should be 12 * 24 * 30=8640 pieces of data, and 8640*0.05 is 432, which should be calculated from the 433rd piece of data.

But they are handled separately as follows:

  1. Some are 432, some are 433, I can't find their running rules
  2. Always 433 (correct)
  3. It is always 432 (the number is limited and the statistics are not accurate)

I looked at the graph_variables.php code for 0.8.8a and 0.8.8h, they are all the same, don't know why this is the result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUndesired behaviourconfirmedBug is confirm by dev teamresolvedA fixed issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions