def fired(self, actor_id, action_name):
        t = time.time()
        if self.aggregated_timeout > 0.0:
            # Aggregate
            self.actors_aggregated.setdefault(actor_id,
                                            {action: 0 for action in self.actors_meta[actor_id]})[action_name] += 1
            # Set [start time, modification time] and update modification time
            self.actors_aggregated_time.setdefault(actor_id, [t, t])[1] = t
            if self.next_forget_aggregated <= t:
                self.forget_aggregated(t)
        if self.active and self.timeout > 0.0:
            # Timed metering
            self.actors_log[actor_id].append((t, action_name))
            # Remove old data at most once per second
            if self.oldest < self.timeout - t and self.last_forget < t - 1.0:
                self.forget(t)
dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/metering.py/Metering.fired/swapped operands of `-`