Skip to content

Commit

Permalink
replace nan with 0
Browse files Browse the repository at this point in the history
replace nan with 0 of pool has a sice of zero
  • Loading branch information
SourceDoctor authored Jan 18, 2024
1 parent 040b755 commit 58d786c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snmp/dhcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"network": p[0],
"max": p[1],
"cur": p[2],
"percent": p[3],
"percent": 0 if p[3] == 'nan' else p[3],
}
)
continue
Expand Down

0 comments on commit 58d786c

Please sign in to comment.