Cacti / cacti

Cacti ™
http://www.cacti.net
GNU General Public License v2.0
1.65k stars 406 forks source link

When displaying graphs, default end time does not show full 24 hour period #5819

Closed dmitry-moiseenko closed 2 months ago

dmitry-moiseenko commented 2 months ago

graph_cacti

Describe the bug

Console -> Management -> Graphs and select any graph, it opens, but the time is always 5 minutes behind the current time (I mean the last point on the graph).

In my understanding, it should automatically display a 24-hour interval, but in reality, it always shows 23:55.

Cacti Version 1.2.27 Oracle Linux 9

TheWitness commented 2 months ago

This is correct. We may be well served by re-evaluating this. We try to ensure we don't get the gaps at the end, but if you are polling at 30 seconds, it can be annoying.

dmitry-moiseenko commented 2 months ago

No, we do polling once a minute. We also use the weathermap plugin, and the delay is a bit annoying. It would be great if this could be re-evaluated.

TheWitness commented 2 months ago

@dmitry-moiseenko , please try the latest lib/rrd.php

TheWitness commented 2 months ago

@dmitry-moiseenko, I just made another small tweak for the timespan selector. Looking good now there.

dmitry-moiseenko commented 2 months ago

Thank you so much for that fix. It works perfectly!

TheWitness commented 2 months ago

Perfect @dmitry-moiseenko. Thanks for inspiring me to make the change.