mirror of https://github.com/m-labs/artiq.git
influxdb: ms precision
* better compression * we don't timestamp the change any better (network, queue, http)
This commit is contained in:
parent
06b8666a53
commit
6c5382d43f
|
@ -105,7 +105,7 @@ class DBWriter(TaskObject):
|
||||||
k, v = await self._queue.get()
|
k, v = await self._queue.get()
|
||||||
url = self.base_url + "/write"
|
url = self.base_url + "/write"
|
||||||
params = {"u": self.user, "p": self.password, "db": self.database,
|
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)
|
fmt_ty, fmt_v = format_influxdb(v)
|
||||||
data = "{},dataset={} {}={}".format(self.table, k, fmt_ty, fmt_v)
|
data = "{},dataset={} {}={}".format(self.table, k, fmt_ty, fmt_v)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue