virtop 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/libvirt/domain.rb +2 -8
- data/lib/virtop.rb +1 -1
- metadata +1 -1
data/lib/libvirt/domain.rb
CHANGED
@@ -8,14 +8,8 @@ class Libvirt::Domain
|
|
8
8
|
|
9
9
|
# Return state as string symbol.
|
10
10
|
def state
|
11
|
-
|
12
|
-
|
13
|
-
">"
|
14
|
-
when 3
|
15
|
-
"||"
|
16
|
-
else
|
17
|
-
"?"
|
18
|
-
end
|
11
|
+
states = ['none', 'run', 'block', 'pause', 'halting', 'off', 'crash']
|
12
|
+
states[self.info.state]
|
19
13
|
end
|
20
14
|
|
21
15
|
# Return current memory assignment in mebibytes as string.
|
data/lib/virtop.rb
CHANGED