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

ZeroDivisionError on daily report #46

Closed
rantos9 opened this issue Apr 27, 2021 · 2 comments
Closed

ZeroDivisionError on daily report #46

rantos9 opened this issue Apr 27, 2021 · 2 comments

Comments

@rantos9
Copy link

rantos9 commented Apr 27, 2021

I just update chiadog today and I set up the daily report for 3 machines, one main machine running a full node (but no local plots) and two remote harvesters. Both of the remote harvesters failed the daily report and gave out a ZeroDivisionError:

Exception in thread Thread-5: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/renan/chiadog/src/chia_log/handlers/daily_stats/stats_manager.py", line 87, in _run_loop self._send_daily_notification() File "/home/renan/chiadog/src/chia_log/handlers/daily_stats/stats_manager.py", line 77, in _send_daily_notification summary += "\n" + stat_acc.get_summary() File "/home/renan/chiadog/src/chia_log/handlers/daily_stats/stat_accumulators/signage_point_stats.py", line 37, in get_summary percentage_skipped = (self._skips_total / self._total) * 100 ZeroDivisionError: division by zero

Chiadog is running on the full node machine.

@mahaupt
Copy link

mahaupt commented Apr 27, 2021

Exception in thread Thread-3: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/home/marcel/Documents/chiadog/src/chia_log/handlers/daily_stats/stats_manager.py", line 87, in _run_loop self._send_daily_notification() File "/home/marcel/Documents/chiadog/src/chia_log/handlers/daily_stats/stats_manager.py", line 77, in _send_daily_notification summary += "\n" + stat_acc.get_summary() File "/home/marcel/Documents/chiadog/src/chia_log/handlers/daily_stats/stat_accumulators/signage_point_stats.py", line 37, in get_summary percentage_skipped = (self._skips_total / self._total) * 100 ZeroDivisionError: division by zero

I get the same error running on a harvester-only

@martomi
Copy link
Owner

martomi commented Apr 27, 2021

Pushing out a new release in half hour that will fix this and few small improvements.

martomi added a commit that referenced this issue Apr 27, 2021
martomi added a commit that referenced this issue Apr 27, 2021
martomi added a commit that referenced this issue Apr 27, 2021
martomi added a commit that referenced this issue Apr 27, 2021
jinnatar pushed a commit to jinnatar/chiadog that referenced this issue Feb 5, 2023
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

No branches or pull requests

3 participants