@@ -54,6 +54,7 @@ namespace Global {
54
54
extern string overlay;
55
55
extern string clock;
56
56
extern uid_t real_uid, set_uid;
57
+ extern atomic<bool > init_conf;
57
58
}
58
59
59
60
namespace Runner {
@@ -228,11 +229,11 @@ namespace Mem {
228
229
string name;
229
230
string fstype{}; // defaults to ""
230
231
std::filesystem::path stat{}; // defaults to ""
231
- int64_t total{}; // defaults to 0
232
- int64_t used{}; // defaults to 0
233
- int64_t free{}; // defaults to 0
234
- int used_percent{}; // defaults to 0
235
- int free_percent{}; // defaults to 0
232
+ int64_t total{};
233
+ int64_t used{};
234
+ int64_t free{};
235
+ int used_percent{};
236
+ int free_percent{};
236
237
237
238
array<int64_t , 3 > old_io = {0 , 0 , 0 };
238
239
deque<long long > io_read = {};
@@ -272,20 +273,20 @@ namespace Net {
272
273
extern std::unordered_map<string, uint64_t > graph_max;
273
274
274
275
struct net_stat {
275
- uint64_t speed{}; // defaults to 0
276
- uint64_t top{}; // defaults to 0
277
- uint64_t total{}; // defaults to 0
278
- uint64_t last{}; // defaults to 0
279
- uint64_t offset{}; // defaults to 0
280
- uint64_t rollover{}; // defaults to 0
276
+ uint64_t speed{};
277
+ uint64_t top{};
278
+ uint64_t total{};
279
+ uint64_t last{};
280
+ uint64_t offset{};
281
+ uint64_t rollover{};
281
282
};
282
283
283
284
struct net_info {
284
285
std::unordered_map<string, deque<long long >> bandwidth = { {" download" , {}}, {" upload" , {}} };
285
286
std::unordered_map<string, net_stat> stat = { {" download" , {}}, {" upload" , {}} };
286
287
string ipv4{}; // defaults to ""
287
288
string ipv6{}; // defaults to ""
288
- bool connected{}; // defaults to false
289
+ bool connected{};
289
290
};
290
291
291
292
extern std::unordered_map<string, net_info> current_net;
@@ -337,32 +338,32 @@ namespace Proc {
337
338
338
339
// * Container for process information
339
340
struct proc_info {
340
- size_t pid{}; // defaults to 0
341
+ size_t pid{};
341
342
string name{}; // defaults to ""
342
343
string cmd{}; // defaults to ""
343
344
string short_cmd{}; // defaults to ""
344
- size_t threads{}; // defaults to 0
345
- int name_offset{}; // defaults to 0
345
+ size_t threads{};
346
+ int name_offset{};
346
347
string user{}; // defaults to ""
347
- uint64_t mem{}; // defaults to 0
348
+ uint64_t mem{};
348
349
double cpu_p{}; // defaults to = 0.0
349
350
double cpu_c{}; // defaults to = 0.0
350
351
char state = ' 0' ;
351
- int64_t p_nice{}; // defaults to 0
352
- uint64_t ppid{}; // defaults to 0
353
- uint64_t cpu_s{}; // defaults to 0
354
- uint64_t cpu_t {}; // defaults to 0
352
+ int64_t p_nice{};
353
+ uint64_t ppid{};
354
+ uint64_t cpu_s{};
355
+ uint64_t cpu_t {};
355
356
string prefix{}; // defaults to ""
356
- size_t depth{}; // defaults to 0
357
- size_t tree_index{}; // defaults to 0
358
- bool collapsed{}; // defaults to false
359
- bool filtered{}; // defaults to false
357
+ size_t depth{};
358
+ size_t tree_index{};
359
+ bool collapsed{};
360
+ bool filtered{};
360
361
};
361
362
362
363
// * Container for process info box
363
364
struct detail_container {
364
- size_t last_pid{}; // defaults to 0
365
- bool skip_smaps{}; // defaults to false
365
+ size_t last_pid{};
366
+ bool skip_smaps{};
366
367
proc_info entry;
367
368
string elapsed, parent, status, io_read, io_write, memory;
368
369
long long first_mem = -1 ;
0 commit comments