From fb7e714e63afe5e77823d7bbe2598f4c988e80e0 Mon Sep 17 00:00:00 2001
From: Peter Hormanns <peter.hormanns@jalin.de>
Date: Thu, 13 Jun 2019 19:44:21 +0200
Subject: [PATCH] write epoch seconds to pillar

---
 hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java b/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java
index 4a7ae79..c35a2d3 100644
--- a/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java
+++ b/hsarback/src/de/hsadmin/pillar/JsonPillarServlet.java
@@ -59,6 +59,8 @@
 		} 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;

--
Gitblit v1.9.0-SNAPSHOT