-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V7.0.0 Latest] Time chart not keeping history (Set for 24 hours in config) #219
Comments
I have the same issue. Maybe is something wrong withy my config. Any ideea @tltneon ? |
Seems to be working fine @ https://github.com/tltneon/lgsl/tree/854d5aeb95bc9c4b3dc0da11404bda464f0417b1 commit in XAMPP PHP 8.2.4 dev environment
Those addresses don't appear as valid to me. |
They are docker addresses, they have an IP behind them.
Yes. It is configured EDIT: I see before v7.0.0 src folder was named lgsl_files. I updated my cron. Now I will wait few hours to see if now it works normal. Thank you! EDIT 2: Everything is now working fine. Thank you @Rosenstein ! |
@Rosenstein I was not aware of the cron job. I'm a noob at all this coding stuff. I have made a scheduled task now to run every minute. On Windows Server 2022 Datacenter with xampp (PHP 8.1.2). The schedule runs a .bat file with following content: C:\xampp\php\php.exe C:\xampp\htdocs\e107\lgsl7\src\lgsl_cron.php. Is that correct? |
That would be correct.
I'm using D:\xampp_8.2.4\php\php-win.exe as it does not display any window while running. |
Well... No errors, so guess I'm okay ;) |
Anyway, how often should the chart be updated? (on every cron update?) |
I started the cron job today around 15:00 CEST. If you take a look at the different servers it's all messed up with different results (all servers are running 24/7) |
Seems like it is kinda working now after some time, at least the charts seems to update now, but i keep getting this php error: |
This PR #225 will fix that error. |
Cool, thanks :) Just noticed these error messages too, are they related or another issue? [10-Sep-2[10-Sep-2024 17:53:51 Europe/Copenhagen] PHP Deprecated: Implicit conversion from float 369.90000000000003 to int loses precision in C:\xampp\htdocs\e107\lgsl7\charts.php on line 81 |
Those are separate issues 😉 |
I would expect the chart to keep the history for the last 24 hours when the server has been online, but I only see the amount of current players?
The text was updated successfully, but these errors were encountered: