v1.2.46 - Fix: move extern g_connection_count to file scope in api.c

This commit is contained in:
Your Name
2026-02-25 07:22:14 -04:00
parent 06e6c17b7b
commit a1f712236a
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -13,6 +13,7 @@ extern void log_query_execution(const char* query_type, const char* sub_id,
#include <pthread.h>
#include <libwebsockets.h>
#include <cjson/cJSON.h>
extern int g_connection_count;
#include <sqlite3.h>
#include <time.h>
#include <sys/stat.h>
@@ -1292,7 +1293,6 @@ cJSON* query_cpu_metrics(void) {
cJSON_AddNumberToObject(cpu_stats, "process_id", (double)pid);
// Get active WebSocket connection count
extern int g_connection_count;
cJSON_AddNumberToObject(cpu_stats, "active_connections", (double)g_connection_count);
// Get memory usage from /proc/self/status
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -13,8 +13,8 @@
// Using CRELAY_ prefix to avoid conflicts with nostr_core_lib VERSION macros
#define CRELAY_VERSION_MAJOR 1
#define CRELAY_VERSION_MINOR 2
#define CRELAY_VERSION_PATCH 45
#define CRELAY_VERSION "v1.2.45"
#define CRELAY_VERSION_PATCH 46
#define CRELAY_VERSION "v1.2.46"
// Relay metadata (authoritative source for NIP-11 information)
#define RELAY_NAME "C-Relay"