Workaround for bug in Solaris compiler
This commit is contained in:
parent
0ceddc4fa3
commit
60b00af0bb
8
gui.go
8
gui.go
|
@ -43,8 +43,12 @@ func restGetVersion() string {
|
||||||
func restGetModel(m *Model, w http.ResponseWriter) {
|
func restGetModel(m *Model, w http.ResponseWriter) {
|
||||||
var res = make(map[string]interface{})
|
var res = make(map[string]interface{})
|
||||||
|
|
||||||
res["globalFiles"], res["globalDeleted"], res["globalBytes"] = m.GlobalSize()
|
globalFiles, globalDeleted, globalBytes := m.GlobalSize()
|
||||||
res["localFiles"], res["localDeleted"], res["localBytes"] = m.LocalSize()
|
res["globalFiles"], res["globalDeleted"], res["globalBytes"] = globalFiles, globalDeleted, globalBytes
|
||||||
|
|
||||||
|
localFiles, localDeleted, localBytes := m.LocalSize()
|
||||||
|
res["localFiles"], res["localDeleted"], res["localBytes"] = localFiles, localDeleted, localBytes
|
||||||
|
|
||||||
files, total := m.NeedFiles()
|
files, total := m.NeedFiles()
|
||||||
res["needFiles"], res["needBytes"] = len(files), total
|
res["needFiles"], res["needBytes"] = len(files), total
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue