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
31b275d9
Commit
31b275d9
authored
Aug 18, 2015
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly display lxc templates
parent
15afd36c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
pvestatd
bin/pvestatd
+4
-2
ext-pve.css
www/css/ext-pve.css
+8
-0
No files found.
bin/pvestatd
View file @
31b275d9
...
...
@@ -236,15 +236,17 @@ sub update_lxc_status {
foreach
my
$vmid
(
keys
%
$vmstatus
)
{
my
$d
=
$vmstatus
->
{
$vmid
};
my
$template
=
$d
->
{
template
}
?
$d
->
{
template
}
:
"
0
";
my
$data
;
if
(
$d
->
{
status
}
eq
'
running
')
{
# running
$data
=
"
$d
->{uptime}:
$d
->{name}:
$d
->{status}:0:
$ctime
:
$d
->{cpus}:
$d
->{cpu}:
"
.
$data
=
"
$d
->{uptime}:
$d
->{name}:
$d
->{status}:
$template
:
"
.
"
$ctime
:
$d
->{cpus}:
$d
->{cpu}:
"
.
"
$d
->{maxmem}:
$d
->{mem}:
"
.
"
$d
->{maxdisk}:
$d
->{disk}:
"
.
"
$d
->{netin}:
$d
->{netout}:
"
.
"
$d
->{diskread}:
$d
->{diskwrite}
";
}
else
{
$data
=
"
0:
$d
->{name}:
$d
->{status}:
0
:
$ctime
:
$d
->{cpus}::
"
.
$data
=
"
0:
$d
->{name}:
$d
->{status}:
$template
:
$ctime
:
$d
->{cpus}::
"
.
"
$d
->{maxmem}::
"
.
"
$d
->{maxdisk}:
$d
->{disk}:
"
.
"
:::
";
...
...
www/css/ext-pve.css
View file @
31b275d9
...
...
@@ -50,6 +50,7 @@
.pve-itype-icon-qemu-template
,
.pve-itype-icon-qemu-running
,
.pve-itype-icon-lxc
,
.pve-itype-icon-lxc-template
,
.pve-itype-icon-lxc-running
,
.pve-itype-icon-node
,
.pve-itype-icon-node-running
,
...
...
@@ -90,6 +91,13 @@
background-image
:
url(../images/lxc-off.png)
;
}
.pve-itype-icon-lxc-template
,
.x-tree-node-lxc-template
,
.x-grid-tree-node-expanded
.x-tree-node-lxc-template
{
background-image
:
url(../images/computer-template.png)
;
}
.pve-itype-icon-lxc-running
,
.x-tree-node-lxc-running
,
.x-grid-tree-node-expanded
.x-tree-node-lxc-running
...
...
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