mirror of
https://github.com/valitydev/yandex-tank.git
synced 2024-11-06 10:25:17 +00:00
publish eta
This commit is contained in:
parent
22cf2b3484
commit
5eec183198
@ -170,6 +170,11 @@ class PhantomPlugin(AbstractPlugin, AggregateResultListener):
|
||||
"Phantom done its work with exit code: %s", retcode)
|
||||
return abs(retcode)
|
||||
else:
|
||||
info = self.get_info()
|
||||
if info:
|
||||
eta = int(info.duration) - (
|
||||
int(time.time()) - int(self.phantom_start_time))
|
||||
self.publish('eta', eta)
|
||||
return -1
|
||||
else:
|
||||
if not self.processed_ammo_count or self.did_phout_import_try != self.processed_ammo_count:
|
||||
|
Loading…
Reference in New Issue
Block a user