8000 Fixed issue with overflow on 32bit OS. by Xiderpunk · Pull Request #28 · iphands/randy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fixed issue with overflow on 32bit OS. #28

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

Closed
wants to merge 4 commits into from

Conversation

Xiderpunk
Copy link
Contributor

deets.rs was causing a panic on overflow for: statvfs.f_bsize * statvfs.f_bfree. I just rejigged a bit to prevent overflow when they are multiplied.

Fixed a compiler warning on macros.rs for a spurious semi-colon for future proofing.

Minor refactoring on some elements of structs to shorthand, just for readability.

Xiderpunk and others added 4 commits November 5, 2021 01:19
Fixed overflow at line 508 in deets.rs for 32bit OS.
Fixed rustc compiler warning in macros.rs for spurious semi-colon.
Minor refactoring on structs to use shorthand.
Fixed issue with overflow on 32bit OS.
Changed formatting for display to show 2 decimal places. Corrected logic for display if the total value is less than 1GiB.
@iphands
Copy link
Owner
iphands commented Nov 5, 2021

Hey @Xiderpunk can you trim it down to just the 32bit overflow stuff?
I'd like to merge the other stuff separately or take another approach.
Like the degree thing. That should actually work like these:
https://github.com/iphands/randy/blob/main/config/my_laptop.yml#L80
https://github.com/iphands/randy/blob/main/config/my_laptop.yml#L52

That ways its not a code thing.

@Xiderpunk
Copy link
Contributor Author

Absolutely, will do that this evening I hope. Will just make it granular. Also yes I see, and yeah would make sense to place the degree symbol into the config.

iphands added a commit that referenced this pull request Sep 29, 2022
Bringing over helpful changes from #28

Co-authored-by: Chris Norris <Xiderpunk@users.noreply.github.com>
@iphands
Copy link
Owner
iphands commented Sep 29, 2022

Manually merged, added as co-author. Thanks!

@iphands iphands closed this Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0