Skip to content
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

Wrong data #3226

Closed
7AGAM opened this issue Sep 23, 2023 · 9 comments
Closed

Wrong data #3226

7AGAM opened this issue Sep 23, 2023 · 9 comments
Labels
Bug Issues that contain unintended behavior status: Awaiting Reply Issues that require clarification from the reporter

Comments

@7AGAM
Copy link

7AGAM commented Sep 23, 2023

Describe the issue

I see fewer Total Players in the dashboard than there are in the database under plan_users.

Plugin versions

5.5 build 2461

@7AGAM 7AGAM added the Bug Issues that contain unintended behavior label Sep 23, 2023
@AuroraLS3
Copy link
Collaborator

Could you send a screenshot of the whole page where this happens

@AuroraLS3 AuroraLS3 added the status: Awaiting Reply Issues that require clarification from the reporter label Sep 24, 2023
@7AGAM
Copy link
Author

7AGAM commented Sep 24, 2023

Could you send a screenshot of the whole page where this happens

Screenshot_20230924_112657_Samsung Internet.jpg

Total Players says 507. But in the database there are 623 entries in the plan_users table. So 623 users and sometimes the total player count also goes down.

@AuroraLS3
Copy link
Collaborator

  • Are you using export? (I was hoping to see the whole screenshot from a PC to tell this)
  • Are you sure that this is your panel and not another Plan instance running on the same host? (You can ensure this by changing Network.Name in the Plan config on bungee, the change should be reflected on the website after /planproxy reload)

@7AGAM
Copy link
Author

7AGAM commented Sep 24, 2023

Screenshot 2023-09-24 193516

Sorry, here is a screenshot of the whole screen. I am sure that this is my panel because of my login datas.

@AuroraLS3
Copy link
Collaborator

I'm not really sure what is going on. Is Thresholds.Remove_Inactive_Players_After setting set as less than 90 days?

Does the number happen to be the same on one of the game servers? (If you switch to one from the compass) - Maybe the data was loaded on a /server page and then upon switching to /network page it didn't switch out the data to be of the whole network 🤔

Does the number become correct if you refresh the page?

@7AGAM
Copy link
Author

7AGAM commented Sep 24, 2023

Thresholds.Remove_Inactive_Players_After is set to over 90. The number is not the same as on a game server. Updating doesn't help either.

@AuroraLS3
Copy link
Collaborator

One thing to try would be to clear the json cache - remove all files in /plugins/Plan/cached_json.

If that doesn't help, could you send me the result of these SQL queries:

SELECT COUNT(*) FROM plan_users;
SELECT COUNT(1) FROM plan_users;
SELECT COUNT(*) FROM plan_user_info;
SELECT COUNT(1) FROM plan_user_info;

@7AGAM
Copy link
Author

7AGAM commented Sep 24, 2023

Nothing has changed.
These are the results of the Sql queries:

SELECT COUNT(*) FROM plan_users
507

SELECT COUNT(1) FROM plan_users

507

SELECT COUNT(*) FROM plan_user_info

556

SELECT COUNT(1) FROM plan_user_info
556

But is it normal that there are up to 625 ids in plan_users if SELECT COUNT(*) FROM plan_users
507 coming out?

@AuroraLS3
Copy link
Collaborator

Yes the id can vary since when players are removed the id keeps increasing anyway. You need to use COUNT(*) to tell how many entries are in a table.

I'll close this as solved since it was a misunderstanding on how databases store ids

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues that contain unintended behavior status: Awaiting Reply Issues that require clarification from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants