Random Project

Wrong calculation in mem

Hi,

just noticed that the calculation of used Paging Space is done wrong:
expr 100 * / ps_size

It should be:
expr 100 * / ps_size

Or you could just grab the used size in percent from the output of “lsps -a”.
Also expr does not allow floats which will cause a problem anyway. awk will work.

Multiple allocated Paging Spaces are pretty but could happen and are not considered.

Cheers
zaxxon