mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 02:20:11 -08:00
refactor: Clean up whitespace and improve formatting in backup update logic
This commit is contained in:
@@ -663,11 +663,11 @@ func (m *Model) updateViewportForRunningService(service string, outputForDisplay
|
|||||||
totalEstimatedDuration := time.Duration(totalEstimatedRaw)
|
totalEstimatedDuration := time.Duration(totalEstimatedRaw)
|
||||||
remainingDuration := totalEstimatedDuration - elapsed
|
remainingDuration := totalEstimatedDuration - elapsed
|
||||||
if remainingDuration > 0 {
|
if remainingDuration > 0 {
|
||||||
etaStr = fmt.Sprintf("\\nETA: %s", remainingDuration.Round(time.Second))
|
etaStr = fmt.Sprintf("\nETA: %s", remainingDuration.Round(time.Second))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
m.viewport.SetContent(fmt.Sprintf("⏳ Backup in progress for %s...\\n\\n%s %d%%%%\\nElapsed: %s%s\\n\\n📋 Latest output:\\n%s\\n\\nPress 'x' to stop the backup.",
|
m.viewport.SetContent(fmt.Sprintf("⏳ Backup in progress for %s...\n\n%s %d%%\nElapsed: %s%s\n\n📋 Latest output:\n%s\n\nPress 'x' to stop the backup.",
|
||||||
service, progressBar, progress, elapsed.Round(time.Second), etaStr, outputForDisplay))
|
service, progressBar, progress, elapsed.Round(time.Second), etaStr, outputForDisplay))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user