fix style
This commit is contained in:
parent
7b3af122b0
commit
41aecfc45c
2 changed files with 3 additions and 2 deletions
|
@ -117,5 +117,6 @@ def main() -> None:
|
|||
end_time = time.time()
|
||||
|
||||
print(
|
||||
f"Charging Finished in {end_time-start_time:.1f} seconds. Total current: {result.sum_current / 3.6:.3f} mAh, Total energy: {result.sum_energy / 3.6 :.3f} mWh"
|
||||
f"Charging Finished in {end_time-start_time:.1f} seconds.\n"
|
||||
f"Total current: {result.sum_current / 3.6:.3f} mAh, Total energy: {result.sum_energy / 3.6:.3f} mWh"
|
||||
)
|
||||
|
|
|
@ -92,4 +92,4 @@ def main() -> None:
|
|||
curve = ui_curve(dev=dev, start=args.start, end=args.end, step=args.step, control=args.control, limit=args.limit, step_time=args.interval)
|
||||
|
||||
for timestamp, ui in curve:
|
||||
print(f"{time.asctime(time.localtime(timestamp))}: {ui}, P={ui.voltage*ui.current}, R={ui.voltage/ui.current if ui.current!=0 else 0} ")
|
||||
print(f"{time.asctime(time.localtime(timestamp))}: {ui}, P={ui.voltage * ui.current}, R={ui.voltage / ui.current if ui.current != 0 else 0} ")
|
||||
|
|
Loading…
Reference in a new issue