Skip to content

Commit b76e1ae

Browse files
committed
fixed times
1 parent f2170d7 commit b76e1ae

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

instana/fsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Fsm(object):
1818
E_ANNOUNCE = "announce"
1919
E_TEST = "test"
2020

21-
RETRY_PERIOD = 5#30
21+
RETRY_PERIOD = 30
2222

2323
agent = None
2424
fsm = None

instana/meter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import thread
33
import instana.log as l
44
import resource
5+
import os
56

67
class Snapshot(object):
78
name = None
@@ -49,7 +50,7 @@ def __init__(self, **kwds):
4950
self.__dict__.update(kwds)
5051

5152
class Meter(object):
52-
SNAPSHOT_PERIOD = 5#600
53+
SNAPSHOT_PERIOD = 600
5354
snapshot_countdown = 1
5455
sensor = None
5556

@@ -69,7 +70,7 @@ def process(self):
6970
s = self.collect_snapshot()
7071

7172
m = self.collect_metrics()
72-
d = EntityData(pid=0, snapshot=s, metrics=m)
73+
d = EntityData(pid=os.getpid(), snapshot=s, metrics=m)
7374

7475
thread.start_new_thread(self.sensor.agent.request,
7576
(self.sensor.agent.make_url(self.sensor.agent.AGENT_DATA_URL), "POST", d))

0 commit comments

Comments
 (0)