1
0
Fork 0
Fork/mirror of Andy Wingo's tekuti
Find a file
Tom Willemse 6da1ed8fd2 Fix some “Numerical overflow” errors
When starting a new blog, or trying to run on some very old data, there is no
data available on any bogus or legitimate comments. When this happens Tekuti
will try to divide by 0 and divide 0 by other things in a few places, assuming
that there is at least _some_ data about bogus and legitimate comments.

I’m not 100% sure what the expectation is of these calculations, so I might have
chosen the wrong solution, but it seems to me that if there is no data
available, all we know is that there is nothing (0).

This fixes an issue with both trying to comment on a fresh new data set, or a
dataset that hasn’t been touched since 2014.
2021-05-30 01:21:47 -07:00
src src/tekuti is a shell script 2010-11-24 21:37:27 +01:00
tekuti Fix some “Numerical overflow” errors 2021-05-30 01:21:47 -07:00
.gitignore autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
acinclude.m4 autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
AUTHORS autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
ChangeLog autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
configure.ac autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
COPYING autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
env.in autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
example-config Add example config 2014-10-22 15:46:35 +02:00
Makefile.am Add bogus comment detector. 2017-03-06 09:41:52 +01:00
NEWS autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
nginx-config Add example nginx config. 2014-10-22 15:50:31 +02:00
README autotoolize, and compile the scheme files 2010-11-13 18:48:18 +01:00
wordpress-to-dir.py Change wordpress import to use the newer wordpress database layout. 2010-11-15 22:05:15 +01:00
wordpress-xmlrpc-to-dir.py do not remove numbers and s/./-/ in post keys 2011-02-18 23:36:10 +01:00