Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
c60a4435
Commit
c60a4435
authored
Feb 01, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
display KSM sharing on node status panel
parent
7e9bf4e6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Nodes.pm
PVE/API2/Nodes.pm
+5
-0
StatusView.js
www/manager/node/StatusView.js
+5
-0
No files found.
PVE/API2/Nodes.pm
View file @
c60a4435
...
...
@@ -246,6 +246,11 @@ __PACKAGE__->register_method({
total
=>
$meminfo
->
{
memtotal
},
used
=>
$meminfo
->
{
memused
},
};
$res
->
{
ksm
}
=
{
shared
=>
$meminfo
->
{
memshared
},
};
$res
->
{
swap
}
=
{
free
=>
$meminfo
->
{
swapfree
},
total
=>
$meminfo
->
{
swaptotal
},
...
...
www/manager/node/StatusView.js
View file @
c60a4435
...
...
@@ -25,6 +25,10 @@ Ext.define('PVE.node.StatusView', {
return
per
.
toFixed
(
2
)
+
"
%
"
;
};
var
render_ksm
=
function
(
value
)
{
return
PVE
.
Utils
.
format_size
(
value
.
shared
);
};
var
render_meminfo
=
function
(
value
)
{
var
per
=
(
value
.
used
/
value
.
total
)
*
100
;
var
text
=
"
<div>Total:
"
+
PVE
.
Utils
.
format_size
(
value
.
total
)
+
"
</div>
"
+
...
...
@@ -40,6 +44,7 @@ Ext.define('PVE.node.StatusView', {
wait
:
{
header
:
'
IO delay
'
,
required
:
true
,
renderer
:
render_cpu
},
memory
:
{
header
:
'
RAM usage
'
,
required
:
true
,
renderer
:
render_meminfo
},
swap
:
{
header
:
'
SWAP usage
'
,
required
:
true
,
renderer
:
render_meminfo
},
ksm
:
{
header
:
'
KSM sharing
'
,
required
:
true
,
renderer
:
render_ksm
},
rootfs
:
{
header
:
'
HD space (root)
'
,
required
:
true
,
renderer
:
render_meminfo
},
pveversion
:
{
header
:
'
PVE Manager version
'
,
required
:
true
},
kversion
:
{
header
:
'
Kernel version
'
,
required
:
true
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment