Rename variables for easy reference
This commit is contained in:
@@ -56,7 +56,7 @@ func (zr *Handlers) generateResponse(req *http.Request) (*RootResponse, error) {
|
||||
var mem runtime.MemStats
|
||||
runtime.ReadMemStats(&mem)
|
||||
|
||||
allTorrents, _ := zr.torMgr.DirectoryMap.Get(config.ALL_TORRENTS)
|
||||
torrents, _ := zr.torMgr.DirectoryMap.Get(config.ALL_TORRENTS)
|
||||
|
||||
repairQueueStr := ""
|
||||
if zr.torMgr.RepairQueue == nil {
|
||||
@@ -108,7 +108,7 @@ func (zr *Handlers) generateResponse(req *http.Request) (*RootResponse, error) {
|
||||
Logs: fmt.Sprintf("//%s/logs/", req.Host),
|
||||
UserInfo: userInfo,
|
||||
TrafficServedPerAPI: trafficFromAPI,
|
||||
LibrarySize: allTorrents.Count(),
|
||||
LibrarySize: torrents.Count(),
|
||||
TorrentsToRepair: repairQueueStr,
|
||||
MemAlloc: bToMb(mem.Alloc),
|
||||
TotalAlloc: bToMb(mem.TotalAlloc),
|
||||
|
||||
Reference in New Issue
Block a user