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:                        } // while
    

    MODIFIED –-------------------

    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
    

  • i-doit Kenner

    Hi,

    Thank you for that. I have forwarded it to my colleagues who will take a look at it.

    Kind Regards,
    Christian


 


Datenschutz / Privacy Policy