Workaround for bug in Solaris compiler

This commit is contained in:
Jakob Borg 2014-01-06 05:57:41 +01:00
parent 0ceddc4fa3
commit 60b00af0bb
1 changed files with 6 additions and 2 deletions

8
gui.go
View File

@ -43,8 +43,12 @@ func restGetVersion() string {
func restGetModel(m *Model, w http.ResponseWriter) {
var res = make(map[string]interface{})
res["globalFiles"], res["globalDeleted"], res["globalBytes"] = m.GlobalSize()
res["localFiles"], res["localDeleted"], res["localBytes"] = m.LocalSize()
globalFiles, globalDeleted, globalBytes := m.GlobalSize()
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()
res["needFiles"], res["needBytes"] = len(files), total