Skip to content

Commit

Permalink
fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
vergoh committed Sep 3, 2023
1 parent e04e590 commit 6d283df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traffic.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ void livetrafficmeter(const char *iface, const int mode)
if (!json) {
if (cfg.livespinner && cfg.ostyle != 4) {
spin_i++;
if (spin_i >= strlen(spinner)) {
if (spin_i >= 4) {
spin_i = 0;
}
spin_c = spinner[spin_i];
Expand Down

0 comments on commit 6d283df

Please sign in to comment.