Révision 09f96c3d
erratum
| plugins/other/openbsd-memory | ||
|---|---|---|
| 6 | 6 |
echo "used.label Used" |
| 7 | 7 |
echo "total.label Total" |
| 8 | 8 |
echo "free.label Free" |
| 9 |
echo "swap.label Swap used" |
|
| 10 |
echo "swapt.label Swap total" |
|
| 11 | 9 |
exit 0 |
| 12 | 10 |
fi |
| 13 | 11 |
|
| ... | ... | |
| 30 | 28 |
used = scale(spliter($3,2)); |
| 31 | 29 |
free = scale($6); |
| 32 | 30 |
total = used + free; |
| 33 |
swap = scale(spliter($8,1)); |
|
| 34 |
swapt = scale(spliter($8,2)); |
|
| 35 | 31 |
|
| 36 | 32 |
print "acti.value", acti |
| 37 | 33 |
print "used.value", used |
| 38 | 34 |
print "total.value", total |
| 39 | 35 |
print "free.value", free |
| 40 |
print "swap.value", swap |
|
| 41 |
print "swapt.value", swapt |
|
| 42 | 36 |
}' |
Formats disponibles : Unified diff