Bug – Memory - Total Capacity
-
The Total Capacity attribute for Memory includes all Normal, Archived, and Deleted memory items. I modified the following file to only include Normal memory modules and not Archived or Deleted.
file: src/classes/cmdb/dao/category/global/isys_cmdb_dao_category_g_memory.class.php
OLD –--------------------------
341: while ($l_row = $l_res->get_row()) 342: { 343: $l_capacity += isys_convert::memory($l_row['isys_catg_memory_list__capacity'], 'C__MEMORY_UNIT__GB', C__CONVERT_DIRECTION__BACKWARD); 344: } // whileMODIFIED –-------------------
341: while ($l_row = $l_res->get_row()) 342: { 343: if ( $l_row['isys_catg_memory_list__status'] == 2 ) 344: { 345: $l_capacity += isys_convert::memory($l_row['isys_catg_memory_list__capacity'], 'C__MEMORY_UNIT__GB', C__CONVERT_DIRECTION__BACKWARD); 346: } 347: } // while -
Hi,
Thank you for that. I have forwarded it to my colleagues who will take a look at it.
Kind Regards,
Christian
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login