Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
e9fb2aed
Commit
e9fb2aed
authored
Oct 25, 2016
by
Francesc Guasch
Browse files
[#25] KVM info
parent
58b2156a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain/KVM.pm
View file @
e9fb2aed
...
...
@@ -659,6 +659,12 @@ sub get_info {
return
$info
;
}
=head2 set_max_mem
Set the maximum memory for the domain
=cut
sub
set_max_mem
{
my
$self
=
shift
;
my
$value
=
shift
;
...
...
@@ -670,10 +676,22 @@ sub set_max_mem {
}
=head2 get_max_mem
Get the maximum memory for the domain
=cut
sub
get_max_mem
{
return
$_
[
0
]
->
domain
->
get_max_memory
();
}
=head2 set_memory
Sets the current available memory for the domain
=cut
sub
set_memory
{
my
$self
=
shift
;
my
$value
=
shift
;
...
...
Write
Preview
Supports
Markdown
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