We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61ab24 commit a429138Copy full SHA for a429138
internal/fast/fast.go
@@ -4,6 +4,7 @@ import (
4
"context"
5
"fmt"
6
"log"
7
+ "os"
8
"time"
9
10
"github.com/chromedp/cdproto/emulation"
@@ -57,6 +58,15 @@ func Run() {
57
58
log.Fatal(err)
59
}
60
61
+ if os.PathSeparator == '\\' {
62
+ fmt.Printf("download speed: %s %s\n", fast.Down, fast.DownUnit)
63
+ fmt.Printf("upload speed: %s %s\n", fast.Up, fast.UpUnit)
64
+ fmt.Printf("\n")
65
+ fmt.Printf("> took: %f secs\n", time.Since(start).Seconds())
66
+
67
+ return
68
+ }
69
70
fmt.Printf("\033[36mdownload speed:\033[m \033[32m%s\033[m %s\n", fast.Down, fast.DownUnit)
71
fmt.Printf("\033[36mupload speed:\033[m \033[31m%s\033[m %s\n", fast.Up, fast.UpUnit)
72
fmt.Printf("\n")
0 commit comments