write epoch seconds to pillar

This commit is contained in:
Peter Hormanns 2019-06-13 19:44:21 +02:00
parent 1b26054fdc
commit fb7e714e63

View File

@ -59,6 +59,8 @@ public class JsonPillarServlet extends HttpServlet {
} catch (ProcessorException e) {
// dont care
}
final long currentTimeSeconds = System.currentTimeMillis() / 1000L;
writer.println(" , \"currenttimeseconds\": \"" + currentTimeSeconds + "\"");
writer.println(" , \"pacs\": [");
final Iterator<?> pacsIterator = pacsResult.iterator();
boolean firstLoop = true;