Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
rustedusted committed Oct 7, 2024
2 parents 422c349 + bf2cdac commit b914fdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
}
}

int barsLen=wcslen(bars[settings->barType]);
int subPixel = floor(actualBarWidth*(barsLen-1));
RichString_setChar(&bar, startPos + nextOffset - 1, bars[settings->barType][subPixel%(barsLen-1)]);
const wchar_t *barChars = &bars[settings->barType][1];
int barsLen = wcslen(barChars);
int subPixel = floor(actualBarWidth * barsLen);
RichString_setChar(&bar, startPos + nextOffset - 1, barChars[subPixel % barsLen]);

offset = nextOffset;
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ To install on the local system run `make install`. By default `make install` ins
* `libsensors`, readout of temperatures and CPU speeds, is optional even when `--enable-sensors` was used to configure `htop`.
* `libsystemd` is optional when `--enable-static` was not used to configure `htop`. If building statically and `libsystemd` is not found by `configure`, support for the systemd meter is disabled entirely.
* `libnl-3` and `libnl-genl-3`, if `htop` was configured with `--enable-delayacct` and delay accounting process fields are active.
* I/O counters are available when the kernel is compiled with `CONFIG_TASK_IO_ACCOUNTING=Y`.

`htop` checks for the availability of the actual runtime libraries as `htop` runs.

Expand Down

0 comments on commit b914fdb

Please sign in to comment.