git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@550476 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-06-25 12:49:00 +00:00
parent 702b13be27
commit cb32fd2aa4
2 changed files with 2 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public class BenchmarkSupport {
times++;
}
if (times > 0) {
average = total / times;
average = total / (double) times;
}
long oldtime = time;

View File

@ -178,6 +178,7 @@ public class Producer extends BenchmarkSupport {
buffer.append(line);
buffer.append(File.separator);
}
in.close();
return buffer.toString();
}
}