diff --git a/core/src/main/pmc_mtd.cpp b/core/src/main/pmc_mtd.cpp index 7ac9b6c..936c126 100644 --- a/core/src/main/pmc_mtd.cpp +++ b/core/src/main/pmc_mtd.cpp @@ -34,7 +34,8 @@ auto list() -> std::string { processes.push_back({ /* 向json中推入对象 */ {"index", i}, {"pid", ppool[i].pid()}, - {"status", ppool[i].check()} + {"running", ppool[i].isRunning()}, + {"command", ppool[i].check()} }); } diff --git a/static/public/mgmt/features/process.html b/static/public/mgmt/features/process.html index 7adad73..c3772ee 100644 --- a/static/public/mgmt/features/process.html +++ b/static/public/mgmt/features/process.html @@ -100,11 +100,11 @@ const p = list[i]; const tr = document.createElement("tr"); const pid = p.pid; - const status = p.status === true ? "运行中" : (p.status === false ? "已停止" : (p.status || "未知")); + const status = p.running === true ? "运行中" : (p.running === false ? "已停止" : "未知"); tr.innerHTML = `