-
Notifications
You must be signed in to change notification settings - Fork 1
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
WIP: Major refactor #57
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good already! The only thing is testing this I assume?
fn update_active_idle_time(&mut self, timestamp: &DateTime<Utc>, threshold: f64) { | ||
if timestamp.signed_duration_since(self.end_active).num_microseconds().unwrap() as f64 > threshold { | ||
let duration = self.end_active.signed_duration_since(self.start_active); | ||
if !duration.is_zero() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't know if this would ever occur, but what if the duration is smaller then zero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
signed_duration_since: Subtracts another DateTime from the current date and time. This does not overflow or underflow at all.
I expect no problems
Instead of the git repo to pull the latest version from, I changed it to an actual version. This gives us more control over the versioning as I experienced problems on different machines. This makes also sure that we don't suddenly have a broken program when Aya creates a release with breaking changes
…alue in the help menu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets rock and roll 🚀
No description provided.