From c568d909bfe3950b0b09c7ad491c2c8918534099 Mon Sep 17 00:00:00 2001 From: Brett Jia Date: Tue, 21 Jan 2025 03:35:27 -0500 Subject: [PATCH] compile fixes --- src/cosmotop_plugin.cpp | 3 --- src/windows/cosmotop_collect.cpp | 6 ++++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cosmotop_plugin.cpp b/src/cosmotop_plugin.cpp index 74f27db..20e5a48 100644 --- a/src/cosmotop_plugin.cpp +++ b/src/cosmotop_plugin.cpp @@ -363,9 +363,6 @@ namespace Global { #include #include -#include -#include -#include PluginHost* pluginHost = nullptr; diff --git a/src/windows/cosmotop_collect.cpp b/src/windows/cosmotop_collect.cpp index 29781bd..0b8cc1c 100644 --- a/src/windows/cosmotop_collect.cpp +++ b/src/windows/cosmotop_collect.cpp @@ -149,11 +149,13 @@ std::string RunExecutableAndCaptureOutput(const std::string& executablePath) { } std::string FetchLHMValues() { - return RunExecutableAndCaptureOutput(cosmotop_dir / "FetchLHMValues.exe"); + static std::string path = (cosmotop_dir / "FetchLHMValues.exe").string(); + return RunExecutableAndCaptureOutput(path); } std::string FetchLHMReport() { - return RunExecutableAndCaptureOutput(cosmotop_dir / "FetchLHMReport.exe"); + static std::string path = (cosmotop_dir / "FetchLHMReport.exe").string(); + return RunExecutableAndCaptureOutput(path); } namespace Tools {