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

Reset user traffic every n days #105

Closed
freenet4ever opened this issue Dec 16, 2023 · 2 comments
Closed

Reset user traffic every n days #105

freenet4ever opened this issue Dec 16, 2023 · 2 comments
Labels
feature request New feature or request stale Stale issue

Comments

@freenet4ever
Copy link

Can we add this feature:
Record the time when user connected for the first time. if n days passed reset traffic of user.

            {
                "days": 30,
                "megabytes": 10240
                "reset":1
            }

after 30 days reset traffic stats of user

@enfein enfein added the feature request New feature or request label Dec 16, 2023
@enfein
Copy link
Owner

enfein commented Dec 16, 2023

If you are talking about resetting the statistics, rather than using the statistics to limit user's usage, then I believe there is no good reason to support this feature.

The type of this statistics is designed to be counter, which can only increase.

Issue #103 will give you the raw statistics data, which you can query and calculate the user's usage at a given time window.

Copy link

github-actions bot commented Mar 6, 2024

This issue is stale because it has been open 80 days with no activity. Remove stale label or comment or this will be closed in 9 days.

@github-actions github-actions bot added the stale Stale issue label Mar 6, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request stale Stale issue
Projects
None yet
Development

No branches or pull requests

2 participants