Skip to content

Commit

Permalink
Corrected calculation error of Fugaku points
Browse files Browse the repository at this point in the history
  • Loading branch information
mnakao committed Mar 1, 2024
1 parent b4b19d0 commit 0efdb9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion misc/accounting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ INODE_TMP=${HOME_DIR}/inode.tmp
FREE_QUEUE_TMP=${ACCOUNTING_DIR}/free_queue.tmp
#=============================================================================
ACCOUNTJ="/usr/local/bin/accountj"
ACCOUNTJ_PT="/usr/local/bin/accountj_pt"
ACCOUNTD="/usr/local/bin/accountd"
PJSTATA="/usr/local/bin/pjstata"
CHKLOWPRIORITY="/usr/local/bin/chklowpriority"
Expand Down
4 changes: 2 additions & 2 deletions misc/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ def get_fugaku_pt_resource(month, group, w_commas = true)
if File.exist?(file)
CSV.foreach(file) do |row|
if row[0] == "RESOURCE_GROUP" and row[1] == "pt-Aug" and month == "Aug"
return (w_commas)? num_with_commas(row[2]) : row[2].to_i
return (w_commas)? num_with_commas(row[2].to_i/3600) : row[2].to_i/3600
elsif row[0] == "RESOURCE_GROUP" and row[1] == "pt-Feb" and month == "Feb"
return (w_commas)? num_with_commas(row[2]) : row[2].to_i
return (w_commas)? num_with_commas(row[2].to_i/3600) : row[2].to_i/3600
end
end
end
Expand Down

0 comments on commit 0efdb9e

Please sign in to comment.