diff options
author | Killian Murphy <killian.murphy@york.ac.uk> | 2020-11-03 18:14:47 +0000 |
---|---|---|
committer | Killian Murphy <killian.murphy@york.ac.uk> | 2020-11-03 18:14:47 +0000 |
commit | f99eeaaf3d589fbc2d915383fbbe9cb4f5f68acd (patch) | |
tree | c4ed717670787f9184f9daac829aa3c1d0084f17 /pending_on_qos.rb | |
parent | 86d4e1e5eef938837336a55afc087a02c1773e61 (diff) |
Don't need job ID for counting
Diffstat (limited to 'pending_on_qos.rb')
-rw-r--r-- | pending_on_qos.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pending_on_qos.rb b/pending_on_qos.rb index 8e8bfac..330011c 100644 --- a/pending_on_qos.rb +++ b/pending_on_qos.rb @@ -24,7 +24,7 @@ class PendingOnQos @partition_thresholds.each do |partition, threshold| squeue_cmd = [ 'squeue', - '--format="%A,%R,%V"', + '--format="%R,%V"', '--noheader', "--partition=#{partition}", '--state=PENDING' @@ -35,7 +35,7 @@ class PendingOnQos end count = data.count do |columns| - (Time.now.to_i - DateTime.parse(columns[2]).to_time.to_i) > threshold + (Time.now.to_i - DateTime.parse(columns[1]).to_time.to_i) > threshold end @collector.report!( |