Commit c242c58f authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added milliseconds to audited packets. JM-998

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/branches/3_2_branch@7532 b35dd754-fafc-0310-a699-88a17e54d16e
parent 52765b68
...@@ -77,10 +77,12 @@ public class AuditorImpl implements Auditor { ...@@ -77,10 +77,12 @@ public class AuditorImpl implements Auditor {
private Timer timer = new Timer("Auditor"); private Timer timer = new Timer("Auditor");
private SaveQueuedPacketsTask saveQueuedPacketsTask; private SaveQueuedPacketsTask saveQueuedPacketsTask;
private FastDateFormat dateFormat; private FastDateFormat dateFormat;
private static FastDateFormat auditFormat;
public AuditorImpl(AuditManager manager) { public AuditorImpl(AuditManager manager) {
auditManager = manager; auditManager = manager;
dateFormat = FastDateFormat.getInstance("yyyyMMdd", TimeZone.getTimeZone("UTC")); dateFormat = FastDateFormat.getInstance("yyyyMMdd", TimeZone.getTimeZone("UTC"));
auditFormat = FastDateFormat.getInstance("MMM dd, yyyy hh:mm:ss:SSS a", JiveGlobals.getLocale());
} }
protected void setMaxValues(int totalSize, int fileSize, int days) { protected void setMaxValues(int totalSize, int fileSize, int days) {
...@@ -406,7 +408,7 @@ public class AuditorImpl implements Auditor { ...@@ -406,7 +408,7 @@ public class AuditorImpl implements Auditor {
element.addAttribute("status", "unknown"); element.addAttribute("status", "unknown");
break; break;
} }
element.addAttribute("timestamp", JiveGlobals.formatDateTime(creationDate)); element.addAttribute("timestamp", auditFormat.format(creationDate));
element.add(packet.getElement()); element.add(packet.getElement());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment