Skip to content

Commit

Permalink
Fix terminal output overlapping
Browse files Browse the repository at this point in the history
  • Loading branch information
adelnoureddine committed May 2, 2024
1 parent 2059d0f commit 4661fcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/csv_power.adb
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ package body CSV_Power is
begin
Utilization_Percentage := Utilization * 100.0;
Put (CR);
Put (ESC & "[0K");
Put ("Total Power: ");
Put (Power, Exp => 0, Fore => 0, Aft => 2);
Put (" Watts ");
Expand Down Expand Up @@ -131,6 +132,7 @@ package body CSV_Power is
Utilization_Percentage := Utilization * 100.0;
PID_Utilization_Percentage := PID_Utilization * 100.0;
Put (CR);
Put (ESC & "[0K");
if (Is_PID) then
Put ("PID monitoring:" & HT & "CPU: ");
else
Expand Down

0 comments on commit 4661fcc

Please sign in to comment.