]> de.git.xonotic.org Git - xonotic/xonstatdb.git/commitdiff
Use greatest instead of least.
authorantzucaro <azucaro@gmail.com>
Wed, 2 Jan 2013 16:47:42 +0000 (11:47 -0500)
committerantzucaro <azucaro@gmail.com>
Wed, 2 Jan 2013 16:47:42 +0000 (11:47 -0500)
scripts/update_elos.sql

index 1665dd269ad2ca9b0a24a0c2c0fc6a5f7030ed4d..087f21361e5f5f46ff581c2c15aa9cd23c54e0a5 100644 (file)
@@ -1,5 +1,5 @@
 begin;
   update player_elos
-  set elo=least(elo-1, 100.00)
+  set elo=greatest(elo-1, 100.00)
   where update_dt < (current_timestamp at time zone 'UTC' - interval '30 days');
 end;