No, no bug. Just showing that they both work.

The server has 16GB of RAM and each slot has 2GB modules as shown.

Your code shows the RAM in each slot and Glenn's shows the total RAM via the registry lookup.