cleanup: namespace Montauk (capital M) => montauk::abi
This commit is contained in:
@@ -82,7 +82,7 @@ static const int art_vw[] = {
|
||||
extern "C" void _start() {
|
||||
// ==== Gather system information ====
|
||||
|
||||
Montauk::SysInfo sysinfo;
|
||||
montauk::abi::SysInfo sysinfo;
|
||||
montauk::get_info(&sysinfo);
|
||||
|
||||
const char* username = "user";
|
||||
@@ -97,16 +97,16 @@ extern "C" void _start() {
|
||||
uint64_t mins = (total_secs % 3600) / 60;
|
||||
uint64_t secs = total_secs % 60;
|
||||
|
||||
Montauk::MemStats mem;
|
||||
montauk::abi::MemStats mem;
|
||||
montauk::memstats(&mem);
|
||||
|
||||
Montauk::FbInfo fb;
|
||||
montauk::abi::FbInfo fb;
|
||||
montauk::fb_info(&fb);
|
||||
|
||||
int tcols = 0, trows = 0;
|
||||
montauk::termsize(&tcols, &trows);
|
||||
|
||||
Montauk::DevInfo devs[32];
|
||||
montauk::abi::DevInfo devs[32];
|
||||
int ndev = montauk::devlist(devs, 32);
|
||||
const char* cpu_name = "Unknown";
|
||||
const char* gpu_name = "Unknown";
|
||||
@@ -122,14 +122,14 @@ extern "C" void _start() {
|
||||
}
|
||||
}
|
||||
|
||||
static Montauk::ProcInfo procs[PROC_SCAN_MAX];
|
||||
static montauk::abi::ProcInfo procs[PROC_SCAN_MAX];
|
||||
int nproc = montauk::proclist(procs, PROC_SCAN_MAX);
|
||||
int active = 0;
|
||||
for (int i = 0; i < nproc; i++) {
|
||||
if (process_state_alive(procs[i].state)) active++;
|
||||
}
|
||||
|
||||
Montauk::NetCfg net;
|
||||
montauk::abi::NetCfg net;
|
||||
montauk::get_netcfg(&net);
|
||||
|
||||
// ==== Build info lines ====
|
||||
|
||||
Reference in New Issue
Block a user