Fix alert issues due to invalid granularities

This commit is contained in:
emanuele-f 2019-08-21 10:27:15 +02:00
parent 7893c1f78a
commit 951cb1a4e9
3 changed files with 15 additions and 12 deletions

View file

@ -1002,25 +1002,25 @@ alert_consts.alert_entities = {
-- Keep in sync with C
alert_consts.alerts_granularities = {
["min"] = {
granularity_id = 0,
granularity_id = 1,
granularity_seconds = 60,
i18n_title = "show_alerts.minute",
i18n_description = "alerts_thresholds_config.every_minute",
},
["5mins"] = {
granularity_id = 1,
granularity_id = 2,
granularity_seconds = 300,
i18n_title = "show_alerts.5_min",
i18n_description = "alerts_thresholds_config.every_5_minutes",
},
["hour"] = {
granularity_id = 2,
granularity_id = 3,
granularity_seconds = 3600,
i18n_title = "show_alerts.hourly",
i18n_description = "alerts_thresholds_config.hourly",
},
["day"] = {
granularity_id = 3,
granularity_id = 4,
granularity_seconds = 86400,
i18n_title = "show_alerts.daily",
i18n_description = "alerts_thresholds_config.daily",