* Profiles: Record successes in the DB fail rate

too, so we can calculate a percentage
    * profiles.jsp:
      - Change fail rate from count to percent
      - Hide standard profiles by default
This commit is contained in:
zzz
2009-11-24 20:20:30 +00:00
parent 234c084c2a
commit 95e0492b32
4 changed files with 35 additions and 8 deletions

View File

@ -114,6 +114,7 @@ public class DBHistory {
*/
public void lookupSuccessful() {
_successfulLookups++;
_failedLookupRate.addData(0, 0);
_lastLookupSuccessful = _context.clock().now();
}
@ -132,6 +133,9 @@ public class DBHistory {
*
*/
public void storeSuccessful() {
// Fixme, redefined this to include both lookup and store fails,
// need to fix the javadocs
_failedLookupRate.addData(0, 0);
_lastStoreSuccessful = _context.clock().now();
}