Skip to content

Commit

Permalink
Revert "feat(cpu): Add ramp-coreload-spacing (#1472)"
Browse files Browse the repository at this point in the history
This reverts commit 06adef1.
  • Loading branch information
patrick96 committed Oct 15, 2018
1 parent 06adef1 commit 6d0cfbd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion contrib/polybar.aur/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Michael Carlberg <c@rlberg.se>
# Contributor: Michael Carlberg <c@rlberg.se>
pkgname=polybar
pkgver=3.2.1
pkgver=3.2.0
pkgrel=1
pkgdesc="A fast and easy-to-use status bar"
arch=("i686" "x86_64")
Expand Down
1 change: 0 additions & 1 deletion include/modules/cpu.hpp
Expand Up @@ -37,7 +37,6 @@ namespace modules {
ramp_t m_rampload;
ramp_t m_rampload_core;
label_t m_label;
int m_ramp_padding;

vector<cpu_time_t> m_cputimes;
vector<cpu_time_t> m_cputimes_prev;
Expand Down
4 changes: 2 additions & 2 deletions include/version.hpp
@@ -1,4 +1,4 @@
#pragma once

#define GIT_TAG "3.2.1"
#define GIT_TAG_NAMESPACE v3_2_1
#define GIT_TAG "3.2.0"
#define GIT_TAG_NAMESPACE v3_2_0
4 changes: 1 addition & 3 deletions src/modules/cpu.cpp
Expand Up @@ -18,8 +18,6 @@ namespace modules {
cpu_module::cpu_module(const bar_settings& bar, string name_) : timer_module<cpu_module>(bar, move(name_)) {
m_interval = m_conf.get<decltype(m_interval)>(name(), "interval", 1s);

m_ramp_padding = m_conf.get<decltype(m_ramp_padding)>(name(), "ramp-coreload-spacing", 1);

m_formatter->add(DEFAULT_FORMAT, TAG_LABEL, {TAG_LABEL, TAG_BAR_LOAD, TAG_RAMP_LOAD, TAG_RAMP_LOAD_PER_CORE});

// warmup cpu times
Expand Down Expand Up @@ -90,7 +88,7 @@ namespace modules {
auto i = 0;
for (auto&& load : m_load) {
if (i++ > 0) {
builder->space(m_ramp_padding);
builder->space(1);
}
builder->node(m_rampload_core->get_by_percentage(load));
}
Expand Down

0 comments on commit 6d0cfbd

Please sign in to comment.