history: fix mysql warning (truncated incorrect double value)