diff --git a/pom.xml b/pom.xml
index 75dfcae..42e80e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
org.kairosdb
kairos-remote
- 1.1
+ 1.1.1
jar
kairos-remote
diff --git a/src/main/java/org/kairosdb/plugin/remote/RemoteListener.java b/src/main/java/org/kairosdb/plugin/remote/RemoteListener.java
index ed5f4e1..223ae0d 100644
--- a/src/main/java/org/kairosdb/plugin/remote/RemoteListener.java
+++ b/src/main/java/org/kairosdb/plugin/remote/RemoteListener.java
@@ -76,7 +76,6 @@ public class RemoteListener
private String m_dataFileName;
private volatile boolean m_firstDataPoint = true;
private int m_dataPointCounter;
- private Stopwatch m_sendTimer = Stopwatch.createUnstarted();
private volatile Multimap m_dataPointMultimap;
private final Object m_mapLock = new Object(); //Lock for the above map
@@ -447,14 +446,13 @@ void sendData() throws IOException
{
long now = System.currentTimeMillis();
- m_sendTimer.start();
+ Stopwatch sendTimer = Stopwatch.createStarted();
+ long timeToSend = 0L;
rollAndZipFile(now, false);
-
sendAllZipfiles();
- long timeToSend = m_sendTimer.elapsed(TimeUnit.MILLISECONDS);
- m_sendTimer.reset();
+ timeToSend = sendTimer.elapsed(TimeUnit.MILLISECONDS);
try
{