git-svn-id: svn://db.shs.com.ru/pip@815 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -343,7 +343,7 @@ PIIODevice * PIConnection::addDevice(const PIString & full_path, PIIODevice::Dev
|
|||||||
__device_pool__->lock();
|
__device_pool__->lock();
|
||||||
if (diags_.value(dev, 0) == 0) {
|
if (diags_.value(dev, 0) == 0) {
|
||||||
PIDiagnostics * d = new PIDiagnostics(false);
|
PIDiagnostics * d = new PIDiagnostics(false);
|
||||||
d->setInterval(10.);
|
d->setInterval(100.);
|
||||||
diags_[dev] = d;
|
diags_[dev] = d;
|
||||||
CONNECTU(d, qualityChanged, this, diagQualityChanged);
|
CONNECTU(d, qualityChanged, this, diagQualityChanged);
|
||||||
__device_pool__->init();
|
__device_pool__->init();
|
||||||
@@ -476,7 +476,7 @@ PIPacketExtractor * PIConnection::addFilter(const PIString & name_, const PIStri
|
|||||||
__device_pool__->lock();
|
__device_pool__->lock();
|
||||||
if (diags_.value(e->extractor, 0) == 0) {
|
if (diags_.value(e->extractor, 0) == 0) {
|
||||||
PIDiagnostics * d = new PIDiagnostics(false);
|
PIDiagnostics * d = new PIDiagnostics(false);
|
||||||
d->setInterval(10.);
|
d->setInterval(100.);
|
||||||
diags_[e->extractor] = d;
|
diags_[e->extractor] = d;
|
||||||
CONNECTU(d, qualityChanged, this, diagQualityChanged);
|
CONNECTU(d, qualityChanged, this, diagQualityChanged);
|
||||||
}
|
}
|
||||||
@@ -513,7 +513,7 @@ PIPacketExtractor * PIConnection::addFilter(PIPacketExtractor * filter, const PI
|
|||||||
__device_pool__->lock();
|
__device_pool__->lock();
|
||||||
if (diags_.value(e->extractor, 0) == 0) {
|
if (diags_.value(e->extractor, 0) == 0) {
|
||||||
PIDiagnostics * d = new PIDiagnostics(false);
|
PIDiagnostics * d = new PIDiagnostics(false);
|
||||||
d->setInterval(10.);
|
d->setInterval(100.);
|
||||||
diags_[e->extractor] = d;
|
diags_[e->extractor] = d;
|
||||||
CONNECTU(d, qualityChanged, this, diagQualityChanged);
|
CONNECTU(d, qualityChanged, this, diagQualityChanged);
|
||||||
}
|
}
|
||||||
@@ -945,7 +945,7 @@ PIConnection::DevicePool::~DevicePool() {
|
|||||||
|
|
||||||
void PIConnection::DevicePool::init() {
|
void PIConnection::DevicePool::init() {
|
||||||
if (!isRunning())
|
if (!isRunning())
|
||||||
start(10);
|
start(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -61,11 +61,11 @@ PIDiagnostics::State::State() {
|
|||||||
PIDiagnostics::PIDiagnostics(bool start_): PITimer(/*PITimer::Pool*/) {
|
PIDiagnostics::PIDiagnostics(bool start_): PITimer(/*PITimer::Pool*/) {
|
||||||
disconn_ = 0.;
|
disconn_ = 0.;
|
||||||
//piCout << "PIDiagnostics construct";
|
//piCout << "PIDiagnostics construct";
|
||||||
setInterval(500);
|
setInterval(100);
|
||||||
reset();
|
reset();
|
||||||
setDisconnectTimeout(3.);
|
setDisconnectTimeout(3.);
|
||||||
changeDisconnectTimeout(3.);
|
changeDisconnectTimeout(3.);
|
||||||
if (start_) PITimer::start(500);
|
if (start_) PITimer::start(100);
|
||||||
//piCout << "PIDiagnostics construct done";
|
//piCout << "PIDiagnostics construct done";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user