Commit 006faf1
authored
PageInfo: fix zero-division check (x-tools#609)
A division by zero happened today at https://xtools.wmcloud.org/pageinfo/pl.wikipedia.org/Mi%C4%99dzynarodowy%20Bank%20Inwestycyjny/2025-07-12/2025-07-12. it's a weird request to make (pageinfo for exactly two edits including one revdeleted and the rollback), but whatever. We were ensuring that the wrong thing was non-0.1 parent 86fb642 commit 006faf1
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | | - | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1011 | 1014 | | |
1012 | 1015 | | |
1013 | 1016 | | |
| |||
0 commit comments