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

[Bug]: Vault backup interval wrong for high numbers #153

Closed
Syphdias opened this issue Dec 14, 2021 · 1 comment
Closed

[Bug]: Vault backup interval wrong for high numbers #153

Syphdias opened this issue Dec 14, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Syphdias
Copy link

Describe the bug

If I set the "Vault backup interval (minutes)" to 35791 everything is fine.
If I set the "Vault backup interval (minutes)" to 35792 it saves the setting and tries to commit any changes as often as it can.

Relevant errors (if available)

No response

Steps to reproduce

  • Open settings
  • Go to "Obsidian Git"
  • Enter 35791 for "Vault backup interval (minutes)"
  • Wait one second
  • Delete the 1 at the end of "Vault backup interval (minutes)"
  • Append a 2 at the end of "Vault backup interval (minutes)"

Expected Behavior

Act like the setting was 35791 but wait one more minute.

Addition context

No response

Operating system

Linux

@Vinzent03 Vinzent03 added the bug Something isn't working label Dec 14, 2021
@Vinzent03
Copy link
Owner

The reason is the max interval duration of 2^31, which is 2147483648. And 35792 * 60 * 1000 = 2147520000 is above that. If I get the time, I will try to find a workaround for these high values.

Vinzent03 added a commit that referenced this issue Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants