Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/collectors/ntpd/ntpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def get_ntpq_stats(self):
data['poll'] = {'val': parts[5], 'precision': 0}
data['reach'] = {'val': parts[6], 'precision': 0}
data['delay'] = {'val': parts[7], 'precision': 6}
data['offset'] = {'val': parts[7], 'precision': 0}
data['offset'] = {'val': parts[8], 'precision': 0}
data['jitter'] = {'val': parts[9], 'precision': 6}

def convert_to_second(when_ntpd_ouput):
Expand Down
2 changes: 1 addition & 1 deletion src/diamond/utils/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def collector_process(collector, metric_queue, log):
# avoid having all collectors running at the same time
next_window = math.floor(time.time() / interval) * interval

if str_to_bool(self.config['stagger_collection']):
if str_to_bool(collector.config['stagger_collection']):
stagger_offset = random.uniform(0, interval - 1)

# Allocate time till the end of the window for the collector to run. With a
Expand Down