Skip to content

Commit

Permalink
compile fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Jan 21, 2025
1 parent 718a38c commit c568d90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/cosmotop_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,6 @@ namespace Global {
#include <sys/stat.h>

#include <libc/nt/runtime.h>
#include <libc/nt/enum/loadlibrarysearch.h>
#include <libc/nt/dll.h>
#include <libc/proc/ntspawn.h>

PluginHost* pluginHost = nullptr;

Expand Down
6 changes: 4 additions & 2 deletions src/windows/cosmotop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c568d90

Please sign in to comment.