# integral-functions for the long period are incorrect

Hi.

We have some counter for the number of function calls that are sent to the graphite.

The rate is almost the same, so we may treat it as a constant.

We have the following retention rules:

retentions = 60:10080,

So we have one week with 1m data, next month of 5m data, and so on.

If I use any integral function ("integral" of "summarize") it works in such a way:

integral(

integral(

when i use 7d (or 1w), it starts using 5m-data. If I'm not mistaken, it just sums all values, and as the number of values is 5 times less, so the summ is 5 times less than real value.

I've made a screenshots with examples:

http://

The "6d" integral is about 7.2M, so "1w" should be about 7.2M/6 *7 = 8.4M, but it shows 1.7M (=8.4M/5).

I suppose the same problem occurs on the "1m" boundary and "1y" boundary.

What am I doing wrong? Should I change smth in config files or smth?

My usual usecase is to check the following graphs:

summarize(

summarize(

etc.

How should I do this?

Best,

Ivan.

## Question information

- Language:
- English Edit question

- Status:
- Answered

- For:
- Graphite Edit question

- Assignee:
- No assignee Edit question

- Last query:

- Last reply:

## Can you help with this problem?

Provide an answer of your own, or ask Ivan Glushkov for more information if necessary.