Fix "usage" mode for InfluxDB

I forgot this script knows about the category labels.
This commit is contained in:
sparky8512 2021-02-02 18:03:47 -08:00
parent ed2ef50581
commit 188733e4fb

View file

@ -214,7 +214,7 @@ def sync_timebase(opts, gstate):
def loop_body(opts, gstate):
fields = {"status": {}, "ping_stats": {}}
fields = {"status": {}, "ping_stats": {}, "usage": {}}
def cb_add_item(key, val, category):
fields[category][key] = val