fixed bug in resource monitoring

Change-Id: I5b7468da83266bfb84c0ae884f88b68e51b82cfe
Signed-off-by: Alexander Wert <alexander.wert@sap.com>