Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
move private constants to .cpp file (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mm318 committed Dec 11, 2019
1 parent 9391954 commit cf9bb2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Expand Up @@ -28,6 +28,10 @@
namespace
{

constexpr const char PROC[] = "/proc/";
constexpr const char STATM[] = "/statm";
constexpr const char METRIC_NAME[] = "_memory_percent_used";

/**
* Return the total system memory.
*
Expand Down
Expand Up @@ -25,12 +25,6 @@
#include "rclcpp/rclcpp.hpp"
#include "rcutils/logging_macros.h"

namespace
{
constexpr const char PROC[] = "/proc/";
constexpr const char STATM[] = "/statm";
constexpr const char METRIC_NAME[] = "_memory_percent_used";
} // namespace

namespace system_metrics_collector
{
Expand Down

0 comments on commit cf9bb2f

Please sign in to comment.