replaced deprecated function call in psutil

The call to `get_memory_percent` triggers deprecation warnings in psutil2.x.