Subscriber and Server register their internal errors in the global transport perf counter object

This commit is contained in:
Pavel Kirienko
2014-03-28 19:31:02 +04:00
parent 0d9be57d92
commit c6df3833d3
2 changed files with 2 additions and 0 deletions
@@ -151,6 +151,7 @@ class GenericSubscriber : Noncopyable
UAVCAN_TRACE("GenericSubscriber", "Unable to decode the message [%i] [%s]",
decode_res, DataSpec::getDataTypeFullName());
failure_count_++;
node_.getDispatcher().getTransferPerfCounter().addError();
return false;
}
return true;
@@ -68,6 +68,7 @@ private:
if (res < 0)
{
UAVCAN_TRACE("ServiceServer", "Response publication failure: %i", res);
publisher_.getNode().getDispatcher().getTransferPerfCounter().addError();
response_failure_count_++;
}
}