speedtest-tracker icon indicating copy to clipboard operation
speedtest-tracker copied to clipboard

Incorrect time representation in speed test chart

Open rohitsud opened this issue 1 year ago • 3 comments

Describe the bug The chart displays points uniformly irrespective to the actual time between speed tests.

To Reproduce Steps to reproduce the behavior:

  1. Set speed test granularity to 5 minutes and let it run for 1 hour to generate 12 speed test results.
  2. Set speed test granularity to 1 hour and let it run for 12 hours.
  3. Observe that the chart displays all 24 data points with the same spacing even though the duration between points are different time intervals.

Expected behavior There should be less spacing between speedtest results occurring every 5 minutes than those occurring every one hour on the same graph.

Environment (please complete the following information):

  • OS: Ubuntu
  • Architecture: amd64
  • Browser firefox

rohitsud avatar Apr 17 '23 16:04 rohitsud

@rohitsud can you add some screenshots?

alexjustesen avatar Apr 18 '23 22:04 alexjustesen

Notice the gap in the last segment is the same as previous ones even though it is for 30 mins versus 1h for old measurements. image

rohitsud avatar Apr 18 '23 23:04 rohitsud

Came to suggest the same. It's more apparent there's a much larger gap between datapoints, eg if my docker crashes and I don't notice.

Screenshot 2023-09-05 at 9 39 22 AM

Here you can see a gap of multiple days, even though they're spaced evenly on the X-axis

aedelbro avatar Sep 06 '23 17:09 aedelbro