File tree 2 files changed +4
-6
lines changed
src/main/java/org/kairosdb/plugin/remote
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
<groupId >org.kairosdb</groupId >
6
6
<artifactId >kairos-remote</artifactId >
7
- <version >1.1</version >
7
+ <version >1.1.1 </version >
8
8
<packaging >jar</packaging >
9
9
10
10
<name >kairos-remote</name >
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ public class RemoteListener
76
76
private String m_dataFileName ;
77
77
private volatile boolean m_firstDataPoint = true ;
78
78
private int m_dataPointCounter ;
79
- private Stopwatch m_sendTimer = Stopwatch .createUnstarted ();
80
79
81
80
private volatile Multimap <DataPointKey , DataPoint > m_dataPointMultimap ;
82
81
private final Object m_mapLock = new Object (); //Lock for the above map
@@ -447,14 +446,13 @@ void sendData() throws IOException
447
446
{
448
447
449
448
long now = System .currentTimeMillis ();
450
- m_sendTimer .start ();
449
+ Stopwatch sendTimer = Stopwatch .createStarted ();
450
+ long timeToSend = 0L ;
451
451
452
452
rollAndZipFile (now , false );
453
-
454
453
sendAllZipfiles ();
455
454
456
- long timeToSend = m_sendTimer .elapsed (TimeUnit .MILLISECONDS );
457
- m_sendTimer .reset ();
455
+ timeToSend = sendTimer .elapsed (TimeUnit .MILLISECONDS );
458
456
459
457
try
460
458
{
You can’t perform that action at this time.
0 commit comments