Converted time field to rtime within influxdb module (#9358)

This commit is contained in:
Slashdoom
2018-10-23 05:17:45 +13:00
committed by Neil Lathwood
parent 74d4a7c778
commit e11beb5a77

View File

@@ -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]);