mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Converted time field to rtime within influxdb module (#9358)
This commit is contained in:
@@ -52,6 +52,9 @@ function influx_update($device, $measurement, $tags, $fields)
|
||||
$tmp_tags[$k] = $v;
|
||||
}
|
||||
foreach ($fields as $k => $v) {
|
||||
if ($k == 'time') {
|
||||
$k = 'rtime';
|
||||
}
|
||||
$tmp_fields[$k] = force_influx_data($v);
|
||||
if ($tmp_fields[$k] === null) {
|
||||
unset($tmp_fields[$k]);
|
||||
|
Reference in New Issue
Block a user