forked from M-Labs/artiq
1
0
Fork 0

influxdb: ms precision

* better compression
* we don't timestamp the change any better (network, queue, http)
This commit is contained in:
Robert Jördens 2016-04-24 12:36:00 +02:00
parent 06b8666a53
commit 6c5382d43f
1 changed files with 1 additions and 1 deletions

View File

@ -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: