Skip to content

Commit

Permalink
Merge pull request #2611 from taminob/bugfix/increase-freebsd-ci-timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays committed Oct 26, 2023
2 parents 1618ee7 + 7d8c149 commit 9ef8faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- name: Test in FreeBSD VM
uses: cross-platform-actions/action@v0.19.1
timeout-minutes: 30
timeout-minutes: 120
with:
operating_system: freebsd
version: "13.2"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/cpu_usage/bsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ std::vector<std::tuple<size_t, size_t>> waybar::modules::CpuUsage::parseCpuinfo(
int ncpu = sysconf(_SC_NPROCESSORS_CONF);
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;
waybar::util::scope_guard cp_time_deleter([cp_time]() {
waybar::util::ScopeGuard cp_time_deleter([cp_time]() {
if (cp_time) {
free(cp_time);
}
Expand Down

0 comments on commit 9ef8faf

Please sign in to comment.