Skip to content

Commit

Permalink
Getting more accurate free memory from physical hosts. Fixed ticket #62
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.opennebula.org/one/trunk@300 3034c82b-c49b-4eb3-8279-a7acafdc01c0
  • Loading branch information
tinova committed Jan 9, 2009
1 parent 03e14c7 commit b26deb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/im_mad/kvm/kvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
temp = elemento.strip.split("k ")
if temp[1] == "used"
$used_memory = temp[0]
elsif temp[1] == "free"
$free_memory = temp[0]
end
}

Expand All @@ -50,6 +48,8 @@
}
end
}

$free_memory=`free -k|grep "buffers\/cache"|awk '{print $4}'`

net_text=`cat /proc/net/dev`

Expand Down

0 comments on commit b26deb7

Please sign in to comment.