Skip to content

Commit

Permalink
replace nan with 0 (#505)
Browse files Browse the repository at this point in the history
* replace nan with 0

replace nan with 0 of pool has a sice of zero

* .
  • Loading branch information
SourceDoctor authored Jan 18, 2024
1 parent 040b755 commit fa4d96c
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 fa4d96c

Please sign in to comment.