-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstor.h
More file actions
58 lines (51 loc) · 1.08 KB
/
stor.h
File metadata and controls
58 lines (51 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef STOR_H
#define STOR_H
// Int System
int connection = 0;
int sa_sys_cpu = 0;
int sa_sys_rss = 0;
int sa_sys_vsz = 0;
int sa_sys_ram_used = 0;
int sa_sys_ram_total = 0;
// Mainnet
int rpc_main_con = 0;
int m_version = 0;
int m_connections = 0;
int m_transactions = 0;
int m_blocks = 0;
int m_headers = 0;
int m_uptime = 0;
int m_set_uptime = 0;
// Testnet
int rpc_test_con = 0;
int t_version = 0;
int t_connections = 0;
int t_transactions = 0;
int t_blocks = 0;
int t_headers = 0;
int t_uptime = 0;
int t_set_uptime = 0;
// Char
char *c_dgbn_api;
char *cm_enabled;
char *cm_rpc_ip;
char *cm_rpc_port;
char *cm_rpc_user;
char *cm_rpc_password;
char *cm_output;
char *ct_enabled;
char *ct_rpc_ip;
char *ct_rpc_port;
char *ct_rpc_user;
char *ct_rpc_password;
char *ct_output;
// Api url
char api_url[] = "https://diginode.online/api";
volatile int run = 1;
typedef struct DiskSpaceInfo
{
unsigned long long total_space;
unsigned long long free_space;
unsigned long long used_space;
} DiskSpaceInfo;
#endif // STOR_H