mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 03:18:59 +00:00
Add options to status
This commit is contained in:
parent
7b5e4ab426
commit
c1dfae1a6e
@ -45,6 +45,14 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
|
||||
rc.rate(30*60/10) * 8 / 1000,
|
||||
rc.rate(60*60/10) * 8 / 1000,
|
||||
}
|
||||
status["options"] = map[string]interface{}{
|
||||
"network-timeout": networkTimeout,
|
||||
"ping-interval": pingInterval,
|
||||
"message-timeout": messageTimeout,
|
||||
"per-session-rate": sessionLimitBps,
|
||||
"global-rate": globalLimitBps,
|
||||
"pools": defaultPoolAddrs,
|
||||
}
|
||||
|
||||
bs, err := json.MarshalIndent(status, "", " ")
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user