Use greatest instead of least.
Merge branch 'master' of github.com:antzucaro/xonstatdb