summaryrefslogtreecommitdiff
path: root/src/daq
diff options
context:
space:
mode:
Diffstat (limited to 'src/daq')
-rw-r--r--src/daq/flumotion-plug/s5.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daq/flumotion-plug/s5.py b/src/daq/flumotion-plug/s5.py
index 2ca57e9..841d29d 100644
--- a/src/daq/flumotion-plug/s5.py
+++ b/src/daq/flumotion-plug/s5.py
@@ -151,14 +151,14 @@ class ComponentSFivePlug(base.ComponentPlug):
if self._sfivepoller:
self._old_bytes_received = self._component.getBytesReceived()
self._old_bytes_sent = self._component.getBytesSent()
- self._start_time = datetime.datetime.utcnow()
+ self._start_time = datetime.datetime.utcnow().replace(microsecond=0)
self._sfivepoller.start()
def _sendInit(self):
initdata = { "hostname": self._hostname,
"streamer-id": { "content-id": self._content_id, "format": self._format, "quality": self._quality },
"tags": self._tags }
- self._proto.sendDatagram('%s\n' % (json.dumps(initdata)));
+ self._proto.sendDatagram('%s\n' % (json.dumps(initdata)))
def _updateSFive(self):
client_count = self._component.getClients()
@@ -178,5 +178,5 @@ class ComponentSFivePlug(base.ComponentPlug):
"bytes-sent": bytes_sent_diff
}
}
- self._proto.sendDatagram('%s\n' % (json.dumps(data)));
- self._start_time = datetime.datetime.utcnow()
+ self._proto.sendDatagram('%s\n' % (json.dumps(data)))
+ self._start_time = datetime.datetime.utcnow().replace(microsecond=0)