nitmetrics: do not crash in `to_console` if no values to present
authorJean Privat <jean@pryen.org>
Wed, 12 Mar 2014 13:58:33 +0000 (09:58 -0400)
committerJean Privat <jean@pryen.org>
Wed, 12 Mar 2014 13:58:33 +0000 (09:58 -0400)
commit185484f446039c99413b1af6d8cb4317284358d7
tree47d1421b871093929dfd3d16c9c484d3e2b091da
parent65a4b4788c3e9028cd751b8851fe7cf5ee884db2
nitmetrics: do not crash in `to_console` if no values to present

The crash occurs since `max` and `min` assert that `not values.is_empty`.

Signed-off-by: Jean Privat <jean@pryen.org>
src/metrics/metrics_base.nit