diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b2a821..cfa4780 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ if(COMMAND cmake_policy) cmake_policy(VERSION 2.6) endif(COMMAND cmake_policy) -project(screen-cpu-mem) +project( tmux-mem-cpu-load ) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Release CACHE STRING @@ -11,12 +11,8 @@ if(NOT CMAKE_BUILD_TYPE) FORCE) endif(NOT CMAKE_BUILD_TYPE) -add_executable(screen-cpu-usage screen-cpu-usage.cpp) -install(TARGETS screen-cpu-usage +add_executable(tmux-mem-cpu-load tmux-mem-cpu-load.cpp) +install(TARGETS tmux-mem-cpu-load RUNTIME DESTINATION bin ) - -install(PROGRAMS screen-mem-usage - DESTINATION bin - ) diff --git a/screen-mem-usage b/screen-mem-usage deleted file mode 100755 index 2aa2b4a..0000000 --- a/screen-mem-usage +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -total_mem=$(/usr/bin/free -m | /usr/bin/awk '$1 == "Mem:" { print $2 }') - -while(true); do - current_mem=$(/usr/bin/free -m | /usr/bin/awk '$1 == "-/+" { print $3 }') - echo "${current_mem}MB/${total_mem}MB" - sleep 3 -done diff --git a/screen-cpu-usage.cpp b/tmux-mem-cpu-load.cpp similarity index 100% rename from screen-cpu-usage.cpp rename to tmux-mem-cpu-load.cpp