@@ -564,7 +564,8 class Plot(Operation): | |||||
564 | ''' |
|
564 | ''' | |
565 | ''' |
|
565 | ''' | |
566 |
|
566 | |||
567 |
i |
|
567 | interval = self.data.tm - self.sender_time | |
|
568 | if interval < self.sender_period: | |||
568 | return |
|
569 | return | |
569 |
|
570 | |||
570 | self.sender_time = self.data.tm |
|
571 | self.sender_time = self.data.tm | |
@@ -572,7 +573,7 class Plot(Operation): | |||||
572 | attrs = ['titles', 'zmin', 'zmax'] |
|
573 | attrs = ['titles', 'zmin', 'zmax'] | |
573 | for attr in attrs: |
|
574 | for attr in attrs: | |
574 | self.data.meta[attr] = getattr(self, attr) |
|
575 | self.data.meta[attr] = getattr(self, attr) | |
575 |
|
576 | self.data.meta['interval'] = int(interval) | ||
576 | retries = 2 |
|
577 | retries = 2 | |
577 | while True: |
|
578 | while True: | |
578 | self.socket.send_string(self.data.jsonify(self.plot_name, self.plot_type)) |
|
579 | self.socket.send_string(self.data.jsonify(self.plot_name, self.plot_type)) |
General Comments 0
You need to be logged in to leave comments.
Login now