mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-08 22:31:04 +00:00
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) {
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user