diff --git a/cli/read_agent_logs.py b/cli/read_agent_logs.py index 161dc4c59..74ffd9e06 100644 --- a/cli/read_agent_logs.py +++ b/cli/read_agent_logs.py @@ -47,8 +47,8 @@ fcp = df.loc[df['EventType'] == 'FINAL_CASH_POSITION', 'Event'][0] fv = df.loc[df['EventType'] == 'MARKED_TO_MARKET', 'Event'][0] - ret = ec - sc - surp = fcp - sc + fv + ret = fcp - sc + surp = fv - sc stats.append({ 'AgentType' : at, 'Return' : ret, 'Surplus' : surp }) except (IndexError, KeyError): continue