Community
    • Categories
    • Recent
    • Popular
    • Users
    • Search
    • Register
    • Login
    1. Home
    2. jagwirez
    3. Posts
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 1
    • Groups 0

    Posts

    Recent Best Controversial
    • 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
      
      posted in Development
      J
      jagwirez