Skip to content

Commit 3d1cd12

Browse files
author
Francesco Montorsi
committed
Bump version to 2.4.0
1 parent ac138fc commit 3d1cd12

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Constants.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RPM_TARBALL_DIR:=/tmp/cmonitor/tarball
1212
# IMPORTANT: other places where the version must be updated:
1313
# - debian/changelog -> to release a new Ubuntu package
1414
# See also https://github.com/f18m/cmonitor/wiki/new-release
15-
CMONITOR_VERSION:=2.3.2
15+
CMONITOR_VERSION:=2.4.0
1616
CMONITOR_RELEASE:=0
1717

1818
ifeq ($(CMONITOR_LAST_COMMIT_HASH),)

collector/src/cgroups_processes.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ void CMonitorCgroups::sample_process_list()
474474

475475
// collect all PIDs for current cgroup
476476
m_cgroup_all_pids.clear();
477-
!collect_pids(m_cgroup_processes_reader_pids, m_cgroup_all_pids);
477+
collect_pids(m_cgroup_processes_reader_pids, m_cgroup_all_pids);
478478
}
479479

480480
void CMonitorCgroups::sample_processes(double elapsed_sec, OutputFields output_opts)
@@ -645,10 +645,8 @@ void CMonitorCgroups::sample_processes(double elapsed_sec, OutputFields output_o
645645
the delta of the absolute, monotonic-increasing value and divide by the elapsed time
646646
*/
647647
m_pOutput->plong("last", CURRENT(pi_last_cpu));
648-
m_pOutput->pdouble(
649-
"usr", std::min(100.0, (double)DELTA(pi_utime) / elapsed_sec)); // percentage between 0-100
650-
m_pOutput->pdouble(
651-
"sys", std::min(100.0, (double)DELTA(pi_stime) / elapsed_sec)); // percentage between 0-100
648+
m_pOutput->pdouble("usr", std::min(100.0, (double)DELTA(pi_utime) / elapsed_sec)); // percentage between 0-100
649+
m_pOutput->pdouble("sys", std::min(100.0, (double)DELTA(pi_stime) / elapsed_sec)); // percentage between 0-100
652650

653651
// provide also the total, monotonically-increasing CPU time:
654652
// this is used by chart script to produce the "top of the topper" chart

0 commit comments

Comments
 (0)