ntopng/scripts/lua/modules/timeseries/drivers
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
..
influxdb.lua Fix nil check in isCompatibleVersion() (#4841) 2020-12-16 17:52:28 +01:00
nindex.lua
rrd.lua Add timeseries for host and interface DSCP classes 2020-07-21 10:08:08 +02:00
sample.lua