Fixing function to get the total memory allocated to the ourgrid worker