Merge pull request #2611 from taminob/bugfix/increase-freebsd-ci-timeout
This commit is contained in:
commit
9ef8faf9b1
|
@ -12,7 +12,7 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Test in FreeBSD VM
|
- name: Test in FreeBSD VM
|
||||||
uses: cross-platform-actions/action@v0.19.1
|
uses: cross-platform-actions/action@v0.19.1
|
||||||
timeout-minutes: 30
|
timeout-minutes: 120
|
||||||
with:
|
with:
|
||||||
operating_system: freebsd
|
operating_system: freebsd
|
||||||
version: "13.2"
|
version: "13.2"
|
||||||
|
|
|
@ -34,7 +34,7 @@ std::vector<std::tuple<size_t, size_t>> waybar::modules::CpuUsage::parseCpuinfo(
|
||||||
int ncpu = sysconf(_SC_NPROCESSORS_CONF);
|
int ncpu = sysconf(_SC_NPROCESSORS_CONF);
|
||||||
size_t sz = CPUSTATES * (ncpu + 1) * sizeof(pcp_time_t);
|
size_t sz = CPUSTATES * (ncpu + 1) * sizeof(pcp_time_t);
|
||||||
pcp_time_t *cp_time = static_cast<pcp_time_t *>(malloc(sz)), *pcp_time = cp_time;
|
pcp_time_t *cp_time = static_cast<pcp_time_t *>(malloc(sz)), *pcp_time = cp_time;
|
||||||
waybar::util::scope_guard cp_time_deleter([cp_time]() {
|
waybar::util::ScopeGuard cp_time_deleter([cp_time]() {
|
||||||
if (cp_time) {
|
if (cp_time) {
|
||||||
free(cp_time);
|
free(cp_time);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue