[padb-devel] [padb] r164 committed - Work out the number of proceeses when using mpd and return ...
codesite-noreply at google.com
codesite-noreply at google.com
Wed Aug 26 13:04:40 BST 2009
Revision: 164
Author: apittman
Date: Wed Aug 26 05:04:08 2009
Log: Work out the number of proceeses when using mpd and return
the correct value from mpd_setup_pcmd()/
http://code.google.com/p/padb/source/detail?r=164
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Wed Aug 26 03:56:39 2009
+++ /trunk/src/padb Wed Aug 26 05:04:08 2009
@@ -2409,6 +2409,11 @@
}
if ( $key eq "rank" ) {
$jobs{$job}{pids}{$host}{$pid} = $value;
+ if ( ( not defined $jobs{$job}{lastproc} )
+ or ( $value > $jobs{$job}{lastproc} ) )
+ {
+ $jobs{$job}{lastproc} = $value;
+ }
}
}
return \%jobs;
@@ -2446,7 +2451,7 @@
my $hosts = $#hosts + 1;
- return ( $cmd, undef, $hosts );
+ return ( $cmd, $d->{$job}{lastproc} + 1, $hosts );
}
sub mpd_cleanup_pcmd {
More information about the padb-devel
mailing list