sophuwu.site > sysgraph
makefile typo
sophuwu sophie@sophuwu.site
Sun, 27 Aug 2023 20:58:51 +0100
commit

c8f7e09010ff2bb729801c575cf45ec4179710d5

parent

d6e9113958d9f17044fccd5a68f9e7ef694bb144

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M MakefileMakefile

@@ -35,7 +35,7 @@ @echo "Cleaned up build directory."

install: build/sysgraph @echo Installing to /usr/local/bin/sysgraph - @sudo install build/sygraph /usr/local/bin/sysgraph && echo "Done!" || echo "Failed! Try running as root." + @sudo install build/sysgraph /usr/local/bin/sysgraph && echo "Done!" || echo "Failed! Try running as root." test: build/sysgraph @echo "Running sysgraph"
M main.cppmain.cpp

@@ -159,7 +159,7 @@ logdir = std::string(argv[2]);

return 1; } -void log(std::string logdir, meminfo mem, cpuinfo cpu) { +void log(std::string& logdir, meminfo& mem, cpuinfo& cpu) { std::string logbuf; logbuf.clear(); logbuf.append(std::to_string(std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count()))