-
Are there any known bugs or limitations? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, there are, and here's an example. Let's assume you check how much memory 'postgres' uses. This can be done by executing:
The output number is now 23.599999999999997868, and that is a slightly different result. The difference is 0.000000000000002132. |
Beta Was this translation helpful? Give feedback.
Yes, there are, and here's an example. Let's assume you check how much memory 'postgres' uses. This can be done by executing:
echo "q" | top -b | grep "postgres" | awk -F " " '{ memory += $10 } END { print memory }
Let's assume the numbers were: 0.2, 3.6, 3.5, 0.1, 0.0, 0.0, 3.7, 1.0, 0.6, 0.4, 2.4, 2.5, 2.3, 2.5, 0.4, and 0.4. The output number is 23.6, and it's a valid percentage value. Here's a Perl 1 program generated with the Awk to Perl translator from the 'x2p' subdirectory. It's a slightly modified version of it.