Commit 5412731
committed
SpiderStatus中getPagePerSecond()方法,增加验证逻辑,避免空指针,避免除数为零。
1 parent ab6ff7f commit 5412731
File tree
1 file changed
+7
-2
lines changed- webmagic-extension/src/main/java/us/codecraft/webmagic/monitor
1 file changed
+7
-2
lines changedLines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
0 commit comments