Skip to content
Snippets Groups Projects
Commit a6dc5bd1 authored by Tommi T's avatar Tommi T Committed by David Bigagli
Browse files

Fix for sjstat which currently does not print >1TB memory values

correctly.
parent d07172f8
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ sub do_sinfo ...@@ -138,7 +138,7 @@ sub do_sinfo
# #
# Get the partition and node info. # Get the partition and node info.
# #
my $options = "\"%9P %6m %.4c %.22F %f\""; my $options = "\"%9P %7m %.4c %.22F %f\"";
my $ct = 0; my $ct = 0;
my @sin = `sinfo -e -o $options`; my @sin = `sinfo -e -o $options`;
...@@ -185,13 +185,13 @@ sub do_sinfo ...@@ -185,13 +185,13 @@ sub do_sinfo
if ($verbose) { if ($verbose) {
my $p = $s_part[$i]; my $p = $s_part[$i];
$p =~ s/\*//; $p =~ s/\*//;
printf("%-9s %6dMb %5s %6s %7s %6s %6s %10s %-s\n", printf("%-9s %7dMb %5s %6s %7s %6s %6s %10s %-s\n",
$s_part[$i], $s_mem[$i], $s_cpu[$i], $s_part[$i], $s_mem[$i], $s_cpu[$i],
$s_total[$i], $s_usable[$i], $s_total[$i], $s_usable[$i],
$s_idle[$i], $MaxNodes{$p}, $s_idle[$i], $MaxNodes{$p},
$MaxTime{$p}, $s_feat[$i]); $MaxTime{$p}, $s_feat[$i]);
} else { } else {
printf("%-9s %6dMb %5s %6s %6s %6s %-s\n", printf("%-9s %7dMb %5s %6s %6s %6s %-s\n",
$s_part[$i], $s_mem[$i], $s_cpu[$i], $s_part[$i], $s_mem[$i], $s_cpu[$i],
$s_total[$i], $s_usable[$i], $s_total[$i], $s_usable[$i],
$s_idle[$i], $s_feat[$i]); $s_idle[$i], $s_feat[$i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment