diff options
-rw-r--r-- | main.go | 4 | ||||
-rw-r--r-- | recording/config.go | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -112,8 +112,8 @@ func main() { tasks := getTasks() fmt.Println("Record tasks:") - for _, task := range tasks { - fmt.Println(task.String()) + for i, task := range tasks { + fmt.Printf("[%2d] %s\n", i+1, task) } fmt.Println("") diff --git a/recording/config.go b/recording/config.go index bcd5755..bce9a8f 100644 --- a/recording/config.go +++ b/recording/config.go @@ -30,14 +30,14 @@ func DefaultTransportConfig() TransportConfig { } func (t TaskConfig) String() string { - return fmt.Sprintf("room: %v, %v, %v", t.RoomId, t.Transport.String(), t.Download.String()) + return fmt.Sprintf("Room ID: %v, %v, %v", t.RoomId, t.Transport.String(), t.Download.String()) } func (t TransportConfig) String() string { - return fmt.Sprintf("socket timeout: %vs, retry interval: %vs, max retry times: %v", + return fmt.Sprintf("Socket timeout: %vs, Retry interval: %vs, Max retry times: %v", t.SocketTimeoutSeconds, t.RetryIntervalSeconds, t.MaxRetryTimes) } func (d DownloadConfig) String() string { - return fmt.Sprintf("save directory: %v", d.SaveDirectory) + return fmt.Sprintf("Save directory: \"%v\"", d.SaveDirectory) } |