Fix check name for history.

This commit is contained in:
asofold 2012-09-09 11:39:50 +02:00
parent ae317f4154
commit de9119d659

View File

@ -28,11 +28,12 @@ public class DelayedActionsExecution {
public boolean execute(){
try {
ViolationHistory.getHistory(violationData.player).log(getClass().getName(), violationData.addedVL);
ViolationHistory.getHistory(violationData.player).log(violationData.check.getClass().getName(), violationData.addedVL);
// Add this failed check to the Metrics data.
MetricsData.addFailed(violationData.check.type);
// TODO: the time is taken here, which makes sense for delay, but otherwise ?
final long time = System.currentTimeMillis() / 1000L;
boolean cancel = false;
for (final Action action : actions)