Skip to content

Commit

Permalink
Fix Bug: Avoid dropping first reading
Browse files Browse the repository at this point in the history
  • Loading branch information
pgmpablo157321 committed Oct 10, 2023
1 parent 9b25d4a commit f66c5cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlperf_logging/mllog/examples/power/power_measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def run():
metadata=dict(measurement_type=args.get("measurement_type")),
)
else:
s = power_reader.read_power()
s = power_reader.lines[0]
date = log_parser.extract_date(s)
time_ms = log_parser.date_to_ms(date, log_parser.date_format)
MLLOGGER.start(key=mllog_constants.POWER_MEASUREMENT_START, time_ms=time_ms)
Expand Down

0 comments on commit f66c5cc

Please sign in to comment.