makefile typo
sophuwu sophie@sophuwu.site
Sun, 27 Aug 2023 20:58:51 +0100
M
Makefile
→
Makefile
@@ -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.cpp
→
main.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()))