mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Make it possible for meter to reach 100% mark when swap is totally full.
This commit is contained in:
parent
cc8317f2b0
commit
b20870dbb5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165498
@ -186,7 +186,7 @@ showswap()
|
||||
wprintw(wnd, "%*d", hlen, CONVERT(kvmsw[i].ksw_total));
|
||||
wprintw(wnd, "%*d", ulen, CONVERT(kvmsw[i].ksw_used));
|
||||
|
||||
count = (double)kvmsw[i].ksw_used * 49.999 / kvmsw[i].ksw_total;
|
||||
count = 50.0 * kvmsw[i].ksw_used / kvmsw[i].ksw_total + 1;
|
||||
|
||||
waddch(wnd, ' ');
|
||||
while (count--)
|
||||
|
Loading…
Reference in New Issue
Block a user