torque_rm 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/torque_rm/qstat.rb +2 -2
- data/torque_rm.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc5180467bbf5700678f5edfa3f37555ae7a9b71
|
4
|
+
data.tar.gz: 0f65ecd53df2f1125717ec4c9441dae1d97f7d0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 225a1aa339cd79deca383148144aa78a2d43247ebcc06e80532bf0b4374499373ee9947cf8331763d7a01d16c9fbc9af6c598745fd018890d498c726e290a31f
|
7
|
+
data.tar.gz: da206591c414c0f5ccf9fc1fa5a3b5cc8e7622e2c7b948cf00439bfdbdc44873230c5be2fbe973527056512b05a7cddf60bb0a9be889238651fc9208a44a6fad
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/torque_rm/qstat.rb
CHANGED
@@ -96,11 +96,11 @@ module TORQUE
|
|
96
96
|
alias is_in_queue? is_queued?
|
97
97
|
|
98
98
|
def time
|
99
|
-
return (resources_used.walltime) ? resources_used.walltime : "-"
|
99
|
+
return (resources_used && resources_used.walltime) ? resources_used.walltime : "-"
|
100
100
|
end
|
101
101
|
|
102
102
|
def memory
|
103
|
-
resources_used.mem ? (resources_used.mem.split("kb").first.to_f/1000).round(1) : "0"
|
103
|
+
(resources_used && resources_used.mem) ? (resources_used.mem.split("kb").first.to_f/1000).round(1) : "0"
|
104
104
|
end
|
105
105
|
|
106
106
|
def node
|
data/torque_rm.gemspec
CHANGED