Commit 6f80e06c4a92ccdcefcea0f36811edb292c315bd
1 parent
36845477b0
Exists in
master
Vue의 json 파싱 오류 방지
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
go/src/fullcycle/do-iperf/main.go
... | ... | @@ -8,6 +8,7 @@ import ( |
8 | 8 | "log" |
9 | 9 | "os" |
10 | 10 | "os/exec" |
11 | + "time" | |
11 | 12 | ) |
12 | 13 | |
13 | 14 | func main() { |
... | ... | @@ -58,5 +59,7 @@ func test(code, host string, out io.Writer) { |
58 | 59 | } |
59 | 60 | } |
60 | 61 | |
62 | + time.Sleep(1) | |
63 | + | |
61 | 64 | fmt.Fprintf(out, "{\"%v\": {\"progress\": 100, \"result\": \"\"}}\n", code) |
62 | 65 | } | ... | ... |