From f99eeaaf3d589fbc2d915383fbbe9cb4f5f68acd Mon Sep 17 00:00:00 2001 From: Killian Murphy Date: Tue, 3 Nov 2020 18:14:47 +0000 Subject: Don't need job ID for counting --- pending_on_qos.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pending_on_qos.rb') 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!( -- cgit v1.2.1