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

Catch OverflowError #16

Merged

Conversation

jkleckner
Copy link
Contributor

@jkleckner jkleckner commented Nov 27, 2021

ISSUE TYPE
  • Bugfix pull-request
DSTAT VERSION
Dool 1.0.0
SUMMARY

This is an application of the patch to dstat described here:

@jkleckner
Copy link
Contributor Author

Rebased to master.

dool Outdated
else:
ret += char['space']
except OverflowError:
pass

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of just pass it should also add a space to it, otherwise this line breaks the columns.

Suggested change
pass
ret += char['space']

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't push anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, didn't notice the force required after the rebase on master. Updated now.

@jkleckner jkleckner force-pushed the catch-overflowerror branch 2 times, most recently from 12da75d to 077c638 Compare February 16, 2022 15:10
@jkleckner
Copy link
Contributor Author

Rebased to master

@jkleckner
Copy link
Contributor Author

Rebased again. Is this patch of any interest?

@scottchiefbaker
Copy link
Owner

Apologies... Github was not sending me alerts for issues and pull requests on this repo. I did not see this until just now.

Is this still relevant? I'm working through some backlog.

@SuperTux88
Copy link

Yes, this is still relevant.

jkleckner added 2 commits June 3, 2023 21:30
This is an application of the patch to dstat described here:
- https://bugs.launchpad.net/ubuntu/+source/dstat/+bug/1866619/comments/5
Per the review comment, insert a space on overflow error.
@jkleckner jkleckner force-pushed the catch-overflowerror branch from e63f59d to 290aeff Compare June 4, 2023 04:30
@jkleckner
Copy link
Contributor Author

Rebased again.

@jkleckner
Copy link
Contributor Author

I use this with the patch and it is necessary for me.

@scottchiefbaker
Copy link
Owner

Before I merge this I need a little more information. What overflow is this catching, and how is it triggered?

@jkleckner
Copy link
Contributor Author

This bug report details the disk IO overflow pretty well:

https://bugs.launchpad.net/ubuntu/+source/dstat/+bug/1866619

@SuperTux88
Copy link

It also crashes sometimes when adding/removing network interfaces (connecting/disconnecting VPN).

@scottchiefbaker
Copy link
Owner

Does this address the random "OverflowError: cannot convert float infinity to integer" from #3?

@jkleckner
Copy link
Contributor Author

Does this address the random "OverflowError: cannot convert float infinity to integer" from #3?

Probably, yes.

@scottchiefbaker
Copy link
Owner

@jkleckner EXCELLENT. That has been one of my personal pet peeves for 12+ months now.

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.

3 participants