powa-team / powa-web

PoWA user interface
http://powa.readthedocs.io/
73 stars 31 forks source link

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

Open simonuwe opened 2 years ago

simonuwe commented 2 years ago

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

rjuju commented 2 years ago

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?

simonuwe commented 2 years ago

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

rjuju commented 2 years ago

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!