From 6c5382d43f02192955fbf194c35c01e610625d47 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Sun, 24 Apr 2016 12:36:00 +0200 Subject: [PATCH] influxdb: ms precision * better compression * we don't timestamp the change any better (network, queue, http) --- artiq/frontend/artiq_influxdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_influxdb.py b/artiq/frontend/artiq_influxdb.py index e65497923..8de5b96ce 100755 --- a/artiq/frontend/artiq_influxdb.py +++ b/artiq/frontend/artiq_influxdb.py @@ -105,7 +105,7 @@ class DBWriter(TaskObject): k, v = await self._queue.get() url = self.base_url + "/write" params = {"u": self.user, "p": self.password, "db": self.database, - "consistency": "any", "precision": "n"} + "consistency": "any", "precision": "ms"} fmt_ty, fmt_v = format_influxdb(v) data = "{},dataset={} {}={}".format(self.table, k, fmt_ty, fmt_v) try: