mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
parent
5383d0dfa7
commit
4448ec99e7
@ -45,7 +45,13 @@ const NumaCoreCPU = ({ core, cpus }) => (
|
||||
<Typography gutterBottom variant="body2" component="div" align="center">
|
||||
<Translate word={T.NumaNodeCPUItem} values={core} />
|
||||
</Typography>
|
||||
<Typography gutterBottom variant="body2" component="div" align="center">
|
||||
<Typography
|
||||
gutterBottom
|
||||
variant="body2"
|
||||
component="div"
|
||||
align="center"
|
||||
data-cy={`cpu-${core}`}
|
||||
>
|
||||
{CPU_STATUS[cpus[core]]}
|
||||
</Typography>
|
||||
</Box>
|
||||
|
@ -33,7 +33,15 @@ const NumaCore = ({ core }) => {
|
||||
)
|
||||
|
||||
return (
|
||||
<Grid item xs={12} sm={6} md={3} display="flex" justifyContent="center">
|
||||
<Grid
|
||||
item
|
||||
xs={12}
|
||||
sm={6}
|
||||
md={3}
|
||||
display="flex"
|
||||
justifyContent="center"
|
||||
data-cy={`numa-core-${core.ID}`}
|
||||
>
|
||||
<Box width="200px">
|
||||
<Typography gutterBottom variant="body1" component="div" align="center">
|
||||
<Translate word={T.NumaCore} values={core.ID} />
|
||||
|
@ -55,11 +55,24 @@ const NumaHugepage = ({ hugepage }) => {
|
||||
</ListItem>
|
||||
{hugepage.length > 0 &&
|
||||
hugepage.map(({ FREE, PAGES, SIZE, USAGE }, index) => (
|
||||
<ListItem key={index} className={classes.item} dense>
|
||||
<Typography noWrap>{prettyBytes(SIZE)}</Typography>
|
||||
<Typography noWrap>{FREE}</Typography>
|
||||
<Typography noWrap>{PAGES}</Typography>
|
||||
<Typography noWrap>{USAGE}</Typography>
|
||||
<ListItem
|
||||
key={index}
|
||||
className={classes.item}
|
||||
dense
|
||||
data-cy={`hugepage-${index}`}
|
||||
>
|
||||
<Typography data-cy="size" noWrap>
|
||||
{prettyBytes(SIZE)}
|
||||
</Typography>
|
||||
<Typography data-cy="free" noWrap>
|
||||
{FREE}
|
||||
</Typography>
|
||||
<Typography data-cy="pages" noWrap>
|
||||
{PAGES}
|
||||
</Typography>
|
||||
<Typography data-cy="usage" noWrap>
|
||||
{USAGE}
|
||||
</Typography>
|
||||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
|
@ -37,7 +37,7 @@ const NumaMemory = ({ node }) => {
|
||||
<Typography gutterBottom variant="subtitle1" component="h3">
|
||||
<Translate word={T.NumaNodeMemory} />
|
||||
</Typography>
|
||||
<Paper variant="outlined" sx={{ p: '1.25rem' }}>
|
||||
<Paper variant="outlined" sx={{ p: '1.25rem' }} data-cy="memory">
|
||||
<LinearProgressWithLabel
|
||||
value={percentMemUsed}
|
||||
label={percentMemLabel}
|
||||
|
Loading…
x
Reference in New Issue
Block a user