From a7ffb87cfa0a834d38d1ee0194ac02ddd09b717e Mon Sep 17 00:00:00 2001 From: pichalite Date: Wed, 26 Feb 2020 19:37:19 -0800 Subject: [PATCH] fix odometer units --- grafana/dashboards/internal/drive-details.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafana/dashboards/internal/drive-details.json b/grafana/dashboards/internal/drive-details.json index f66fb92b5f..5b75729b19 100644 --- a/grafana/dashboards/internal/drive-details.json +++ b/grafana/dashboards/internal/drive-details.json @@ -913,7 +913,7 @@ "group": [], "metricColumn": "none", "rawQuery": true, - "rawSql": "SELECT CONCAT_WS(' - ', round(convert_km(start_km, 'km')), round(convert_km(end_km, 'km')))\nFROM drives d\nWHERE d.id = $drive_id", + "rawSql": "SELECT CONCAT_WS(' - ', round(convert_km(start_km, '$length_unit')), round(convert_km(end_km, '$length_unit')))\nFROM drives d\nWHERE d.id = $drive_id", "refId": "A", "select": [ [