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

[Client] - Tick to update ressources and time left is not consistent #1669

Closed
bal7hazar opened this issue Sep 18, 2024 · 2 comments
Closed
Assignees
Labels
prio: medium medium priority
Milestone

Comments

@bal7hazar
Copy link
Contributor

image

The ressource quantity is updated every second where the remaining time is updated every 10 seconds (block time).

It can be fix to be consistent between the 2 information.

Also, when the resource reaches 0, it optimistically keep decreasing until a new block time is set (every 10 seconds), add a simple condition to check display a positive quantity or zero could fix it.

@aymericdelab
Copy link
Collaborator

i think this is because the left one is using date.time() and the right one is using nextblocktimestamp (every 10 sec)

@aymericdelab aymericdelab added the prio: medium medium priority label Sep 18, 2024
@ponderingdemocritus ponderingdemocritus added this to the Next Release milestone Sep 26, 2024
@edisontim
Copy link
Collaborator

Closing as we're only displaying days, hours, minutes now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio: medium medium priority
Projects
None yet
Development

No branches or pull requests

4 participants