ntopng/scripts/lua/modules/timeseries
DasSkelett 14d89c3fdb
Fix nil check in isCompatibleVersion() (#4841)
While playing around with the timeseries feature I got the following exception when trying to use Telegraf's `inputs.influxdb_listener` as proxy to a Prometheus database.
```
...opng/scripts/lua/modules/timeseries/drivers/influxdb.lua:1643: attempt to index a nil value (local 'current')
```

`current` is likely supposed to be checked for nil earlier together with `required`, but instead of `current` the line is checking `version`, which isn't used anymore afterwards though.

So this commit changes the check from `version == nil` to `current == nil`.

Since then I've discovered that proxying Prometheus via Telegraf's `influxdb_listener` doesn't work anyways since ntopng also tries to read from it, but that's a different story.
2020-12-16 17:52:28 +01:00
..
custom Implements custom timeseries 2019-02-22 15:41:41 +01:00
drivers Fix nil check in isCompatibleVersion() (#4841) 2020-12-16 17:52:28 +01:00
schemas Unifies alerted and misbehaving flows on hosts 2020-10-19 10:19:22 +02:00
tests Migrates other lua to REST API v1 2020-06-01 11:03:12 +02:00
ts_common.lua Handle NaN in timeseries stats and total 2020-04-23 11:46:41 +02:00
ts_schema.lua Show upload speed and latency in speedtest active monitoring 2020-04-29 16:51:11 +02:00
ts_utils.lua Fixes #4611 2020-10-21 16:14:55 +02:00
ts_utils_core.lua Fixes #4611 2020-10-21 16:14:55 +02:00