Fix udp test fail

This commit is contained in:
Andrey Pohilko 2014-06-10 19:48:20 +04:00
parent 1519ed0cc7
commit ad3a01c36c
2 changed files with 10 additions and 1 deletions

View File

@ -432,7 +432,10 @@ class PhantomReader(AbstractReader):
if not benchmark_name.startswith("benchmark_io"):
continue
benchmark = statistics[benchmark_name]
self.stat_data[pending_datetime] += benchmark["stream_method"]["mmtasks"][2]
for method in benchmark:
meth_obj=benchmark[method]
if "mmtasks" in meth_obj:
self.stat_data[pending_datetime] += meth_obj["mmtasks"][2]
self.log.debug("Active instances: %s=>%s", pending_datetime, self.stat_data[pending_datetime])
self.log.debug("Instances info buffer size: %s", len(self.stat_data))

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
yandex-load-tank-base (1.6.2) precise; urgency=medium
* more universal phantom stat reader
-- Andrey Pohilko (undera) <undera@yandex-team.ru> Tue, 10 Jun 2014 19:38:42 +0400
yandex-load-tank-base (1.6.1) precise; urgency=medium
* fix bugs for 1.6.0