Skip to content

Commit 72a2679

Browse files
authored
Merge branch 'htop-dev:main' into main
2 parents a98fa9f + 01a3c9e commit 72a2679

File tree

19 files changed

+57
-44
lines changed

19 files changed

+57
-44
lines changed

.github/workflows/build_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: build
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
with:
1616
submodules: true
1717

.github/workflows/ci.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build-ubuntu-latest-minimal-gcc:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Install Dependencies
1616
run: sudo apt-get install --no-install-recommends libncursesw5-dev
1717
- name: Bootstrap
@@ -33,7 +33,7 @@ jobs:
3333
env:
3434
CC: clang-18
3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@v5
3737
- name: install clang repo
3838
run: |
3939
ubuntu_codename=`LC_ALL=C sed 's/^ *UBUNTU_CODENAME *= *\([a-z]*\).*$/\1/p; d' /etc/os-release`
@@ -58,7 +58,7 @@ jobs:
5858
CFLAGS: -O3 -g -flto
5959
LDFLAGS: -O3 -g -flto -Wl,--as-needed
6060
steps:
61-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v5
6262
- name: Install Dependencies
6363
run: sudo apt-get install --no-install-recommends libncursesw5-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libsensors-dev libcap-dev
6464
- name: Bootstrap
@@ -75,7 +75,7 @@ jobs:
7575
env:
7676
CC: clang-18
7777
steps:
78-
- uses: actions/checkout@v4
78+
- uses: actions/checkout@v5
7979
- name: install clang repo
8080
run: |
8181
ubuntu_codename=`LC_ALL=C sed 's/^ *UBUNTU_CODENAME *= *\([a-z]*\).*$/\1/p; d' /etc/os-release`
@@ -100,7 +100,7 @@ jobs:
100100
CFLAGS: -O3 -g -flto
101101
LDFLAGS: -O3 -g -flto
102102
steps:
103-
- uses: actions/checkout@v4
103+
- uses: actions/checkout@v5
104104
- name: Install Dependencies
105105
run: sudo apt-get install --no-install-recommends libncursesw5-dev libtinfo-dev libgpm-dev libsensors-dev libcap-dev
106106
- name: Bootstrap
@@ -116,7 +116,7 @@ jobs:
116116
# we want PCP v5.2.3+
117117
runs-on: ubuntu-22.04
118118
steps:
119-
- uses: actions/checkout@v4
119+
- uses: actions/checkout@v5
120120
- name: Install Dependencies
121121
run: sudo apt-get install --no-install-recommends libpcp3-dev libncursesw5-dev libtinfo-dev libgpm-dev
122122
- name: Bootstrap
@@ -130,7 +130,7 @@ jobs:
130130
# build as if we were on an unsupported platform
131131
runs-on: ubuntu-latest
132132
steps:
133-
- uses: actions/checkout@v4
133+
- uses: actions/checkout@v5
134134
- name: Install Dependencies
135135
run: sudo apt-get install --no-install-recommends libncursesw5-dev libtinfo-dev libgpm-dev
136136
- name: Bootstrap
@@ -145,7 +145,7 @@ jobs:
145145
env:
146146
CC: clang-18
147147
steps:
148-
- uses: actions/checkout@v4
148+
- uses: actions/checkout@v5
149149
- name: install clang repo
150150
run: |
151151
ubuntu_codename=`LC_ALL=C sed 's/^ *UBUNTU_CODENAME *= *\([a-z]*\).*$/\1/p; d' /etc/os-release`
@@ -172,7 +172,7 @@ jobs:
172172
TERM: xterm-color
173173
HTOPRC: .github/workflows/htoprc
174174
steps:
175-
- uses: actions/checkout@v4
175+
- uses: actions/checkout@v5
176176
- name: install clang repo
177177
run: |
178178
ubuntu_codename=`LC_ALL=C sed 's/^ *UBUNTU_CODENAME *= *\([a-z]*\).*$/\1/p; d' /etc/os-release`
@@ -203,7 +203,7 @@ jobs:
203203
env:
204204
CC: clang
205205
steps:
206-
- uses: actions/checkout@v4
206+
- uses: actions/checkout@v5
207207
- name: Install Dependencies
208208
run: brew install automake pkg-config
209209
- name: Bootstrap
@@ -219,7 +219,7 @@ jobs:
219219
runs-on: ubuntu-22.04
220220
timeout-minutes: 20
221221
steps:
222-
- uses: actions/checkout@v4
222+
- uses: actions/checkout@v5
223223
with:
224224
submodules: recursive
225225
- name: Compile
@@ -242,7 +242,7 @@ jobs:
242242
runs-on: ubuntu-22.04
243243
timeout-minutes: 20
244244
steps:
245-
- uses: actions/checkout@v4
245+
- uses: actions/checkout@v5
246246
with:
247247
submodules: recursive
248248
- name: Compile
@@ -263,7 +263,7 @@ jobs:
263263
runs-on: ubuntu-22.04
264264
timeout-minutes: 20
265265
steps:
266-
- uses: actions/checkout@v4
266+
- uses: actions/checkout@v5
267267
with:
268268
submodules: recursive
269269
- name: Compile
@@ -288,7 +288,7 @@ jobs:
288288
runs-on: ubuntu-22.04
289289
timeout-minutes: 20
290290
steps:
291-
- uses: actions/checkout@v4
291+
- uses: actions/checkout@v5
292292
with:
293293
submodules: recursive
294294
- name: Compile
@@ -323,7 +323,7 @@ jobs:
323323
runs-on: ubuntu-22.04
324324
timeout-minutes: 20
325325
steps:
326-
- uses: actions/checkout@v4
326+
- uses: actions/checkout@v5
327327
with:
328328
submodules: recursive
329329
- name: Compile
@@ -343,13 +343,13 @@ jobs:
343343
lint-whitespace:
344344
runs-on: ubuntu-latest
345345
steps:
346-
- uses: actions/checkout@v4
346+
- uses: actions/checkout@v5
347347
- name: check-whitespaces
348348
run: git diff-tree --check $(git hash-object -t tree /dev/null) HEAD
349349

350350
lint-pcp-config:
351351
runs-on: ubuntu-latest
352352
steps:
353-
- uses: actions/checkout@v4
353+
- uses: actions/checkout@v5
354354
- name: check-pcp-style
355355
run: ./check-pcp-style.sh

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout Repository
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030

3131
- name: Initialize CodeQL
3232
uses: github/codeql-action/init@v3

Action.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ typedef struct State_ {
3636
Machine* host;
3737
struct MainPanel_* mainPanel;
3838
Header* header;
39+
const char* failedUpdate; /* function bar diagnostic or NULL if no error */
3940
bool pauseUpdate;
40-
bool validUpdate;
4141
bool hideSelection;
4242
bool hideMeters;
4343
} State;

CommandLine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ int CommandLine_run(int argc, char** argv) {
383383
.host = host,
384384
.mainPanel = panel,
385385
.header = header,
386+
.failedUpdate = NULL,
386387
.pauseUpdate = false,
387-
.validUpdate = true,
388388
.hideSelection = false,
389389
.hideMeters = flags.hideMeters,
390390
};

MainPanel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ static void MainPanel_drawFunctionBar(Panel* super, bool hideFunctionBar) {
194194
IncSet_drawBar(this->inc, CRT_colors[FUNCTION_BAR]);
195195
if (this->state->pauseUpdate) {
196196
FunctionBar_append("PAUSED", CRT_colors[PAUSED]);
197-
} else if (!this->state->validUpdate) {
198-
FunctionBar_append("FAILED", CRT_colors[FAILED_READ]);
197+
} else if (this->state->failedUpdate) {
198+
FunctionBar_append(this->state->failedUpdate, CRT_colors[FAILED_READ]);
199199
}
200200
}
201201

ScreenManager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi
147147
Machine_scan(host);
148148
if (!this->state->pauseUpdate)
149149
Machine_scanTables(host);
150-
this->state->validUpdate = Platform_getValidState();
150+
this->state->failedUpdate = Platform_getFailedState();
151151

152152
// always update header, especially to avoid gaps in graph meters
153153
Header_updateData(this->header);

darwin/Platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ static inline void Platform_getRelease(char** string) {
8888
*string = Generic_uname();
8989
}
9090

91-
static inline bool Platform_getValidState(void) {
92-
return true;
91+
static inline const char* Platform_getFailedState(void) {
92+
return NULL;
9393
}
9494

9595
#define PLATFORM_LONG_OPTIONS

dragonflybsd/Platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ static inline void Platform_getRelease(char** string) {
7777
*string = Generic_uname();
7878
}
7979

80-
static inline bool Platform_getValidState(void) {
81-
return true;
80+
static inline const char* Platform_getFailedState(void) {
81+
return NULL;
8282
}
8383

8484
#define PLATFORM_LONG_OPTIONS

freebsd/Platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ static inline void Platform_getRelease(char** string) {
7777
*string = Generic_uname();
7878
}
7979

80-
static inline bool Platform_getValidState(void) {
81-
return true;
80+
static inline const char* Platform_getFailedState(void) {
81+
return NULL;
8282
}
8383

8484
#define PLATFORM_LONG_OPTIONS

0 commit comments

Comments
 (0)