* 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

@@ -4,13 +4,19 @@ import java.io.IOException;
public class ProfilesHelper extends HelperBase {
private boolean _full;
public ProfilesHelper() {}
public void setFull(String f) {
_full = f != null;
}
/** @return empty string, writes directly to _out */
public String getProfileSummary() {
try {
ProfileOrganizerRenderer rend = new ProfileOrganizerRenderer(_context.profileOrganizer(), _context);
rend.renderStatusHTML(_out);
rend.renderStatusHTML(_out, _full);
} catch (IOException ioe) {
ioe.printStackTrace();
}