Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tmux-applet.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ void applet_memory(FILE* fconf, const char* attributes) {
return;

begin_applet(attributes, "fg=green");
printf("%lu#[nobright]%%,", (memTotal - memFree) * 100 / memTotal);
print_size(memFree, KILOBYTES);
printf(" (%lu#[nobright]%%)", (memTotal - memFree) * 100 / memTotal);
end_applet();
}

Expand All @@ -225,9 +225,9 @@ void applet_disk(FILE* fconf, const char* attributes) {
return;

begin_applet(attributes, "fg=magenta");
printf("%llu#[nobright]%%,",
(s.f_blocks - s.f_bfree) * 100ULL / s.f_blocks);
print_size((unsigned long long) s.f_bavail * s.f_frsize, BYTES);
printf(" (%llu#[nobright]%%)",
(s.f_blocks - s.f_bfree) * 100ULL / s.f_blocks);
end_applet();
}

Expand Down