You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by er...@apache.org on 2019/02/11 13:34:21 UTC
[celix] branch feature/CELIX-459-pubsub-hums updated: CELIX-460:
aligned signed/unsigned in metrics type
This is an automated email from the ASF dual-hosted git repository.
erjanaltena pushed a commit to branch feature/CELIX-459-pubsub-hums
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/feature/CELIX-459-pubsub-hums by this push:
new fcde889 CELIX-460: aligned signed/unsigned in metrics type
fcde889 is described below
commit fcde889c2ec136de6259c436d0c3ae8677b5c97f
Author: Erjan Altena <er...@gmail.com>
AuthorDate: Mon Feb 11 14:34:13 2019 +0100
CELIX-460: aligned signed/unsigned in metrics type
---
.../pubsub_spi/include/pubsub_admin_metrics.h | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/bundles/pubsub/pubsub_spi/include/pubsub_admin_metrics.h b/bundles/pubsub/pubsub_spi/include/pubsub_admin_metrics.h
index 8bb7c2a..2f351a1 100644
--- a/bundles/pubsub/pubsub_spi/include/pubsub_admin_metrics.h
+++ b/bundles/pubsub/pubsub_spi/include/pubsub_admin_metrics.h
@@ -31,10 +31,10 @@
typedef struct pubsub_admin_sender_msg_type_metrics {
long bndId;
char typeFqn[PUBSUB_AMDIN_METRICS_NAME_MAX];
- int typeId;
- long nrOfMessagesSend;
- long nrOfMessagesSendFailed;
- long nrOfSerializationErrors;
+ unsigned int typeId;
+ unsigned long nrOfMessagesSend;
+ unsigned long nrOfMessagesSendFailed;
+ unsigned long nrOfSerializationErrors;
struct timespec lastMessageSend;
double averageTimeBetweenMessagesInSeconds;
double averageSerializationTimeInSeconds;
@@ -43,24 +43,24 @@ typedef struct pubsub_admin_sender_msg_type_metrics {
typedef struct pubsub_admin_sender_metrics {
char scope[PUBSUB_AMDIN_METRICS_NAME_MAX];
char topic[PUBSUB_AMDIN_METRICS_NAME_MAX];
- long nrOfUnknownMessagesRetrieved;
- int nrOfmsgMetrics;
+ unsigned long nrOfUnknownMessagesRetrieved;
+ unsigned int nrOfmsgMetrics;
pubsub_admin_sender_msg_type_metrics_t *msgMetrics; //size = nrOfMessageTypes
} pubsub_admin_sender_metrics_t;
typedef struct pubsub_admin_receiver_metrics {
char scope[PUBSUB_AMDIN_METRICS_NAME_MAX];
char topic[PUBSUB_AMDIN_METRICS_NAME_MAX];
- long nrOfMsgTypes;
+ unsigned long nrOfMsgTypes;
struct {
- int typeId;
+ unsigned int typeId;
char typeFqn[PUBSUB_AMDIN_METRICS_NAME_MAX];
int nrOfOrigins;
struct {
uuid_t originUUID;
- long nrOfMessagesReceived;
- long nrOfSerializationErrors;
- long nrOfMissingSeqNumbers;
+ unsigned long nrOfMessagesReceived;
+ unsigned long nrOfSerializationErrors;
+ unsigned long nrOfMissingSeqNumbers;
struct timespec lastMessageReceived;
double averageTimeBetweenMessagesInSeconds;
double averageSerializationTimeInSeconds;