TS 6.5 Solaris 2.9
I have a script to help clean old jobs, but I am seeing some that return a negative #
for the duration:
$time = $task->GetDuration();
I get this
task id - 11699 time - -23
But the job & task has been active for 5 days.
Ever seen this before ?
Here is the whole code I am running:
#!/usr/iw-home/iw-perl/bin/iwperl
use TeamSite::WFtask;
$wf =`/usr/iw-home/bin/iwgetwfobj`;
$wf =~ m|<activetasks>(.*)</activetasks>|sg;
my $tasks = $1;
$_=$tasks;
@tasks = m|<id v=\"(.*)\"/>.*|g;
foreach $id (
@tasks) {
$task = new TeamSite::WFtask($id);
$time = $task->GetDuration();
$command = $task->GetCommand();
if (! $command) {$command="UNDEF";}
print "task id - $id time - $time \n";
}