Commit 9d8228f
avoid ZeroDevisionError exception when swap memory is 0 (#1345)
* avoid devidedByZero exception when sawp memory is 0
* lint
Co-authored-by: Srikanth Chekuri <[email protected]>1 parent fc98f08 commit 9d8228f
File tree
1 file changed
+3
-1
lines changed- instrumentation/opentelemetry-instrumentation-system-metrics/src/opentelemetry/instrumentation/system_metrics
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
424 | 426 | | |
425 | 427 | | |
426 | 428 | | |
| |||
0 commit comments