Bug 10671: Update patron help files [ FOLLOW-UP ]
[koha.git] / test / progressbarsubmit.pl
index 65e1dfb..0982f58 100755 (executable)
@@ -72,7 +72,7 @@ if ($completedJobID) {
 
             my $reply = CGI->new("");
             print $reply->header(-type => 'text/html');
-            print "{ jobID: '$jobID' }";
+            print '{"jobID":"' . $jobID . '"}';
             exit 0;
         } elsif (defined $pid) {
         # if we get here, we're a child that has detached
@@ -84,8 +84,8 @@ if ($completedJobID) {
             close STDERR;
 
             foreach (1..100) {
-                sleep 1;
                 $job->progress( $_ );
+                sleep 1;
             }
             $job->finish();
         } else {