Make it possible for meter to reach 100% mark when swap is totally full.

This commit is contained in:
Yaroslav Tykhiy 2006-12-23 17:46:32 +00:00
parent cc8317f2b0
commit b20870dbb5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165498

View File

@ -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--)