Changed how time are sent to frontend during sync
All checks were successful
Build / build (push) Successful in 40s
All checks were successful
Build / build (push) Successful in 40s
This commit is contained in:
@@ -87,11 +87,11 @@ func SyncProgress() ProgressResponse {
|
||||
timeSpent = currentTime.Sub(start)
|
||||
out := time.Time{}.Add(timeSpent)
|
||||
fmt.Printf("\nTime spent: %v\n", timeSpent)
|
||||
fmt.Printf("Total time: %v\n", out.Format("15:04:05.00000"))
|
||||
fmt.Printf("Time spent: %v\n", out.Format("15:04:05.00000"))
|
||||
log.Printf("Progress: %v/%v %v%%\n", int(foldersSynced), int(numberOfFoldersToSync), progress)
|
||||
return ProgressResponse{
|
||||
Progress: fmt.Sprintf("%v", progress),
|
||||
TimeSpent: fmt.Sprintf("%v", timeSpent),
|
||||
TimeSpent: out.Format("15:04:05"),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ func SyncResult() SyncResponse {
|
||||
GamesChangedContent: gamesChangedContent,
|
||||
GamesRemoved: gamesRemoved,
|
||||
CatchedErrors: catchedErrors,
|
||||
TotalTime: fmt.Sprintf("%v", timeSpent),
|
||||
TotalTime: out.Format("15:04:05"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user