fix
This commit is contained in:
parent
89e10173c2
commit
65cdca43c1
|
@ -120,7 +120,7 @@ func serviceExecute(ls []LocalServices) {
|
||||||
} else {
|
} else {
|
||||||
service.Srv.Stop()
|
service.Srv.Stop()
|
||||||
downUrl := service.Srv.OssUrl + service.Srv.FilePath
|
downUrl := service.Srv.OssUrl + service.Srv.FilePath
|
||||||
fmt.Println("Check Microservice", service.Srv.ServiceKey, service.Srv.Version, downUrl)
|
fmt.Println("Update Microservice", service.Srv.ServiceKey, service.Srv.Version, downUrl)
|
||||||
binPath := filepath.Join(env.MeshEnv.Prefix, service.Srv.ServiceKey)
|
binPath := filepath.Join(env.MeshEnv.Prefix, service.Srv.ServiceKey)
|
||||||
DownloadFile(downUrl, binPath, func(length, downLen int64) {
|
DownloadFile(downUrl, binPath, func(length, downLen int64) {
|
||||||
fmt.Fprintf(os.Stdout, "Total:%d KB, Current:%d KB, Percent:%.2f%%\r", length, downLen, (float32(downLen)/float32(length))*100)
|
fmt.Fprintf(os.Stdout, "Total:%d KB, Current:%d KB, Percent:%.2f%%\r", length, downLen, (float32(downLen)/float32(length))*100)
|
||||||
|
|
Loading…
Reference in New Issue