diff options
Diffstat (limited to 'glances/exports/glances_zeromq.py')
-rw-r--r-- | glances/exports/glances_zeromq.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glances/exports/glances_zeromq.py b/glances/exports/glances_zeromq.py index 0f2fa310..b7f8e1c0 100644 --- a/glances/exports/glances_zeromq.py +++ b/glances/exports/glances_zeromq.py @@ -10,11 +10,11 @@ """ZeroMQ interface class.""" import sys -import json from glances.compat import b from glances.logger import logger from glances.exports.glances_export import GlancesExport +from glances.globals import json_dumps import zmq from zmq.utils.strtypes import asbytes @@ -84,7 +84,7 @@ class Export(GlancesExport): # - First frame containing the following prefix (STRING) # - Second frame with the Glances plugin name (STRING) # - Third frame with the Glances plugin stats (JSON) - message = [b(self.prefix), b(name), asbytes(json.dumps(data))] + message = [b(self.prefix), b(name), asbytes(json_dumps(data))] # Write data to the ZeroMQ bus # Result can be view: tcp://host:port |