From 9b45eb802467863fff7bd9d3b9d4a61df0dc1ee1 Mon Sep 17 00:00:00 2001 From: vsoch Date: Mon, 15 Apr 2024 00:18:07 -0600 Subject: [PATCH] hotfix: flux-tree stat -> stats Problem: stat is no longer a command, but stats is Solution: change to stats! Testing locally now. Signed-off-by: vsoch --- 2024-RIKEN-AWS/JupyterNotebook/flux-tree/flux-tree | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2024-RIKEN-AWS/JupyterNotebook/flux-tree/flux-tree b/2024-RIKEN-AWS/JupyterNotebook/flux-tree/flux-tree index f12a9b8..5eb5002 100644 --- a/2024-RIKEN-AWS/JupyterNotebook/flux-tree/flux-tree +++ b/2024-RIKEN-AWS/JupyterNotebook/flux-tree/flux-tree @@ -212,7 +212,7 @@ jsonify() { if [[ "${avail}" = "yes" ]] then - avg=$(flux ion-resource stat | grep "Avg" | awk '{print $4}') + avg=$(flux ion-resource stats | grep "Avg" | awk '{print $4}') el_match=$(awk "BEGIN {print ${avg}*${njobs}*1000000.0}") fi