Skip to content

Commit

Permalink
Update comments in metrics files, make timeout_count unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
shannonklaus committed Jan 22, 2024
1 parent 8091d95 commit a53adb2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/include/aerospike/aerospike_stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ typedef struct as_node_stats_s {
* Transaction timeout count since node was initialized. If the timeout is retryable (ie socketTimeout),
* multiple timeouts per transaction may occur.
*/
int64_t timeout_count;
uint64_t timeout_count;

} as_node_stats;

Expand Down
12 changes: 6 additions & 6 deletions src/include/aerospike/as_metrics.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
extern "C" {
#endif

/******************************************************************************
* MACROS
*****************************************************************************/
//---------------------------------
// Macros
//---------------------------------

#define NS_TO_MS 1000000
#define MIN_FILE_SIZE 1000000
Expand All @@ -48,9 +48,9 @@ typedef uint8_t as_latency_type;
#define AS_LATENCY_TYPE_QUERY 4
#define AS_LATENCY_TYPE_NONE 5

/******************************************************************************
* TYPES
*****************************************************************************/
//---------------------------------
// Types
//---------------------------------

typedef struct as_latency_buckets_s {
int32_t latency_shift;
Expand Down
6 changes: 3 additions & 3 deletions src/main/aerospike/as_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include <aerospike/as_node.h>
#include <aerospike/aerospike_stats.h>

/******************************************************************************
* FUNCTIONS
*****************************************************************************/
//---------------------------------
// Functions
//---------------------------------

const char*
utc_time_str(time_t t)
Expand Down

0 comments on commit a53adb2

Please sign in to comment.