Skip to content
Snippets Groups Projects
Commit fb9bd16f authored by Danny Auble's avatar Danny Auble
Browse files

fix for default partition having a '*' after it

parent a772fc04
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ proc def_cpu_cnt { } {
set cpu_cnt 1
spawn $sinfo -h -o "%P %C" -p $partition --state=idle
expect {
-re "$partition ($number)(K?)/($number)(K?)" {
-re "$partition\\* ($number)(K?)/($number)(K?)" {
set cpu_cnt $expect_out(3,string)
if {[string compare $expect_out(4,string) ""]} {
set cpu_cnt [expr $cpu_cnt * 1024]
......
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