Skip to content

Commit

Permalink
fix: delete empty macro and clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
helintongh committed Sep 14, 2024
1 parent 8844b4d commit 627d35e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions include/cinatra/ylt/metric/system_metric.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ inline void stat_io() {
ProcIO s{};
#if defined(__GUNC__)
auto stream_file =
std::shared_ptr<FILE>(fopen("/proc/self/io", "r"), [](FILE *ptr) {
std::shared_ptr<FILE>(fopen("/proc/self/io", "r"), [](FILE* ptr) {
fclose(ptr);
});
if (stream_file == nullptr) {
Expand All @@ -421,9 +421,6 @@ inline void stat_io() {
}
#endif

#if defined(__APPLE__)
#endif

#if defined(WIN32)
DWORD current_process_id = GetCurrentProcessId();
// open process
Expand Down Expand Up @@ -567,7 +564,7 @@ inline void process_status() {
if (read_command_output_through_popen(oss, cmdbuf) != 0) {
return;
}
const std::string &result = oss.str();
const std::string& result = oss.str();
if (sscanf(result.c_str(),
"%d %d %d %d"
"%d %u %ld %ld",
Expand Down

0 comments on commit 627d35e

Please sign in to comment.