Skip to content

Commit

Permalink
Inverse logic to use smaps_rollup
Browse files Browse the repository at this point in the history
Consider not having smaps_rollup a special case, rather than the other
way around.
  • Loading branch information
ktf committed Jan 23, 2025
1 parent b4a20a5 commit 684430e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ProcessMonitor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ namespace o2
namespace monitoring
{

#ifdef O2_MONITORING_OS_CS8
static constexpr auto SMAPS_FILE = "/proc/self/smaps_rollup";
#else
#ifdef O2_MONITORING_OS_CS7
static constexpr auto SMAPS_FILE = "/proc/self/smaps";
#else
static constexpr auto SMAPS_FILE = "/proc/self/smaps_rollup";
#endif

ProcessMonitor::ProcessMonitor()
Expand Down

0 comments on commit 684430e

Please sign in to comment.