powa-web icon indicating copy to clipboard operation
powa-web copied to clipboard

Values of 2 linked Intervals do not match to total interval (10:00-11:00, 11:00-12:00 and 10:00-12:00)

Open simonuwe opened this issue 3 years ago • 3 comments

When selecting 2 intervals for example 10:00-11:00 and 11:00-12:00 and sum the values for example of the "#statement calls" this sum does not match with the values returned for the overall interval 10:00-12:00

Reason: When checking the numbers in for example in powa_statements_history/powa_statements_history_current I see that the calculation for the GUI uses the first and the last timestamp inside the interval you entered in the GUI. Tthe number fit when I substract the values at the first timestamp from the values of the last timestamp. That seems to be the reason the the sum of the values of to linked intervals 10:00-11:00 and 11:00-12:00 do not match the overall interval 10:00-12:00

When using short intervals for example 10 minutes the values of only 5 minutes are shown in the table grid.

Solution: Always use the last timestamp below the start and the end interval

simonuwe avatar Feb 03 '22 12:02 simonuwe

Hi, Thanks for the report. I unfortunately didn't have time to look at it yet. However, this is a problem with the UI right? Could you move this issue to https://github.com/powa-team/powa-web/issues?

rjuju avatar Feb 04 '22 06:02 rjuju

You are right, I used the wrong place. Unfortunately I can not transfer the issue to powa-web - No transfer visible.

simonuwe avatar Feb 04 '22 10:02 simonuwe

I actually didn't know that it was possible to transfer an issue, so I was thinking closing it and reopening anouther one. But after one quick search I just found the transfer button!

rjuju avatar Feb 04 '22 11:02 rjuju