Skip to content

Commit

Permalink
F #6790: Fix for Hugepages in RSunstone monitoring (#3299)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2802647)
  • Loading branch information
jloboescalona2 authored and tinova committed Nov 19, 2024
1 parent 4426443 commit bb029bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/sunstone/public/app/tabs/hosts-tab/panels/numa.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,13 @@ define(function(require) {

var hugepages = Array.isArray(node.HUGEPAGE)? node.HUGEPAGE : [node.HUGEPAGE]
hugepages.forEach(function(page){
monitoring_page = monitoring_node.HUGEPAGE.find(function (m_page) {return m_page.SIZE === page.SIZE});
page['FREE'] = monitoring_page['FREE'];
if(typeof monitoring_node === 'object' && monitoring_node !== null && monitoring_node.HUGEPAGE){
var monitoring_hugepage = Array.isArray(monitoring_node.HUGEPAGE)? monitoring_node.HUGEPAGE : [monitoring_node.HUGEPAGE]
monitoring_page = monitoring_hugepage.find(function (m_page) {
return typeof m_page === 'object' && m_page !== null && m_page.SIZE === page.SIZE
});
page['FREE'] = monitoring_page['FREE'];
}
})
})

Expand Down

0 comments on commit bb029bb

Please sign in to comment.