This commit is contained in:
Mikhail Klementev 2019-12-29 19:03:17 +00:00
parent 8a93015bfe
commit 29e447435f
No known key found for this signature in database
GPG Key ID: BE44DA8C062D87DC

View File

@ -280,7 +280,7 @@ func autoBalloon(l *libvirt.Libvirt, memoryMin, adjustPercent uint64) {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Application VM", "Used memory", "Current memory", "Max memory", "New memory"})
for _, d := range domains {
if d.Name[0:5] == "appvm" {
if strings.HasPrefix(d.Name, "appvm_") {
name := d.Name[6:]
memoryUsedRaw, err := ioutil.ReadFile(os.Getenv("HOME") + "/appvm/" + name + "/.memory_used")