Skip to content

Commit

Permalink
refactor: use FormulaPoisonPillMessageHandler to handle PoisonPillMes…
Browse files Browse the repository at this point in the history
…sage
  • Loading branch information
altor committed Jul 15, 2019
1 parent 69ff345 commit de06bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rapl_formula/rapl_formula_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from functools import reduce

from powerapi.actor import Actor, SocketInterface
from powerapi.formula import FormulaActor, FormulaState
from powerapi.formula import FormulaActor, FormulaState, FormulaPoisonPillMessageHandler
from powerapi.handler import PoisonPillMessageHandler
from powerapi.message import PoisonPillMessage
from powerapi.report import HWPCReport
Expand Down Expand Up @@ -81,5 +81,5 @@ def setup(self):
Setup the RAPL formula.
"""
FormulaActor.setup(self)
self.add_handler(PoisonPillMessage, PoisonPillMessageHandler(self.state))
self.add_handler(PoisonPillMessage, FormulaPoisonPillMessageHandler(self.state))
self.add_handler(HWPCReport, RAPLHandler(self.state))

0 comments on commit de06bf2

Please sign in to comment.