Commit 0e5951b8 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

the padding shall be zeros.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent d2fe0c70
......@@ -371,7 +371,7 @@ public class NativeJavaExecutor extends BaseExecutor {
severity = Integer.parseInt(value[3]);
final Formatter formatter = new Formatter();
formatter.format(DATETIMEFORMAT, new Date(Long.parseLong(value[0]) * 1000), Long.valueOf(value[1]));
times.add(formatter.toString());
times.add(formatter.toString().replace(' ', '0'));
tempNotifications.add(new Notification(formatter.toString(), SeverityResolver.getSeverityString(severity), value[2], value[4]));
formatter.close();
}
......@@ -379,7 +379,7 @@ public class NativeJavaExecutor extends BaseExecutor {
for (final String[] value : s) {
final Formatter formatter = new Formatter();
formatter.format(DATETIMEFORMAT, new Date(Long.parseLong(value[0]) * 1000), Long.valueOf(value[1]));
times.add(formatter.toString());
times.add(formatter.toString().replace(' ', '0'));
tempNotifications.add(new Notification(formatter.toString(), EMPTY_STRING, value[2], value[4]));
formatter.close();
}
......@@ -421,7 +421,7 @@ public class NativeJavaExecutor extends BaseExecutor {
final Formatter formatter = new Formatter();
formatter.format(DATETIMEFORMAT, new Date(time.tv_sec * 1000), time.tv_usec);
final String timestamp = formatter.toString();
final String timestamp = formatter.toString().replace(' ', '0');
formatter.close();
if (severityLevelExtraction) {
......
......@@ -348,7 +348,7 @@ public final class JniExecutor extends BaseExecutor implements IJNICallback {
severity = Integer.parseInt(value[3]);
final Formatter formatter = new Formatter();
formatter.format(DATETIMEFORMAT, new Date(Long.parseLong(value[0]) * 1000), Long.valueOf(value[1]));
times.add(formatter.toString());
times.add(formatter.toString().replace(' ', '0'));
tempNotifications.add(new Notification(formatter.toString(), SeverityResolver.getSeverityString(severity), value[2], value[4]));
formatter.close();
}
......@@ -356,7 +356,7 @@ public final class JniExecutor extends BaseExecutor implements IJNICallback {
for (final String[] value : s) {
final Formatter formatter = new Formatter();
formatter.format(DATETIMEFORMAT, new Date(Long.parseLong(value[0]) * 1000), Long.valueOf(value[1]));
times.add(formatter.toString());
times.add(formatter.toString().replace(' ', '0'));
tempNotifications.add(new Notification(formatter.toString(), EMPTY_STRING, value[2], value[4]));
formatter.close();
}
......@@ -394,7 +394,7 @@ public final class JniExecutor extends BaseExecutor implements IJNICallback {
final Formatter formatter = new Formatter();
formatter.format(DATETIMEFORMAT, new Date(time.tv_sec * 1000), time.tv_usec);
final String timestamp = formatter.toString();
final String timestamp = formatter.toString().replace(' ', '0');
formatter.close();
if (severityLevelExtraction) {
......
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