Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Fix for stupid 2.7 float issues
Browse files Browse the repository at this point in the history
  • Loading branch information
icook committed May 29, 2014
1 parent f94e780 commit a0cae3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions powerpool/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def general():
jobs=len(net_state['jobs']),
shares=share_summary,
share_percs=dict(
low_perc=low_tot / (acc_tot + low_tot) * 100.0,
stale_perc=stale_tot / (acc_tot + stale_tot) * 100.0,
dup_perc=dup_tot / (acc_tot + dup_tot) * 100.0,
low_perc=low_tot / float(acc_tot + low_tot) * 100.0,
stale_perc=stale_tot / float(acc_tot + stale_tot) * 100.0,
dup_perc=dup_tot / float(acc_tot + dup_tot) * 100.0,
),
reject_dup=server_state['reject_dup'].summary(),
reject_low=server_state['reject_low'].summary(),
Expand Down

0 comments on commit a0cae3e

Please sign in to comment.