Skip to content

Commit

Permalink
Adds timestamp to get_freq session data
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner committed Aug 8, 2023
1 parent f60289b commit 33cb5bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion socs/agents/hwp_pid/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ def get_freq(self, session, params):
return False, 'Could not acquire lock'

freq = self.pid.get_freq()
session.data = {'freq': freq}
session.data = {
'freq': freq,
'timestamp': time.time(),
}

return True, 'Current frequency = {}'.format(freq)

Expand Down

0 comments on commit 33cb5bc

Please sign in to comment.