Fix removed field

This commit is contained in:
Mbucari committed 2025-11-23 20:38:20 -07:00
1 parent 04827f81da
commit 8a84a083d1
1 file changed
+3 -3
+3 -3
View File
@@ -1,4 +1,5 @@
using System;
using Dinah.Core;
using System;
using System.IO;
namespace LibationCli;
@@ -30,7 +31,6 @@ internal class ConsoleProgressBar
}
}
private double m_Progress;
private TimeSpan m_RemainingTime;
private int m_LastWriteLength = 0;
private const int MAX_ETA_LEN = 10;
@@ -51,7 +51,7 @@ internal class ConsoleProgressBar
private void WriteProgress()
{
var numCompleted = (int)Math.Round(double.Min(100, m_Progress) * m_NumProgressPieces / 100);
var numCompleted = (int)Math.Round(double.Min(100, Progress?? 0) * m_NumProgressPieces / 100);
var numRemaining = m_NumProgressPieces - numCompleted;
var progressBar = $"[{new string(ProgressChar, numCompleted)}{new string(NoProgressChar, numRemaining)}] ";