Skip to content
This repository has been archived by the owner on Apr 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #133 from Bidaya0/main
Browse files Browse the repository at this point in the history
fix heart beat
  • Loading branch information
Bidaya0 authored Nov 20, 2021
2 parents ae95924 + 14c52b7 commit 8e9e7f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apiserver/report/handler/heartbeat_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ def save_heartbeat(self):
if heartbeat:
queryset.exclude(pk=heartbeat.id).delete()
heartbeat.dt = int(time.time())
if self.replay_queue == 1:
if self.return_queue == 1:
heartbeat.req_count = self.req_count
heartbeat.report_queue = self.report_queue
heartbeat.method_queue = self.method_queue
heartbeat.replay_queue = self.replay_queue
heartbeat.save(update_fields=[
'req_count', 'dt', 'report_queue', 'method_queue', 'replay_queue'
])
elif self.replay_queue == 0:
elif self.return_queue == 0:
heartbeat.memory = self.memory
heartbeat.cpu = self.cpu
heartbeat.save(update_fields=[
Expand Down

0 comments on commit 8e9e7f7

Please sign in to comment.