Formatting
This commit is contained in:
parent
0361056cbf
commit
8685028771
2 changed files with 5 additions and 5 deletions
|
@ -51,10 +51,10 @@ type PeerClassStats struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type PeerStats struct {
|
type PeerStats struct {
|
||||||
PeerClassStats `json:"Peers"`
|
PeerClassStats `json:"Peers"` // Stats for all peers.
|
||||||
Seeds PeerClassStats `json:"Seeds"`
|
|
||||||
|
|
||||||
Completed uint64 // Number of transitions from leech to seed.
|
Seeds PeerClassStats // Stats for seeds only.
|
||||||
|
Completed uint64 // Number of transitions from leech to seed.
|
||||||
}
|
}
|
||||||
|
|
||||||
type PercentileTimes struct {
|
type PercentileTimes struct {
|
||||||
|
|
|
@ -82,9 +82,9 @@ func recursiveFlatten(val reflect.Value, prefix string, output FlatMap) int {
|
||||||
return added
|
return added
|
||||||
}
|
}
|
||||||
|
|
||||||
func flattenPointer(val reflect.Value) FlatMap {
|
func flattenValue(val reflect.Value) FlatMap {
|
||||||
if val.Kind() == reflect.Ptr {
|
if val.Kind() == reflect.Ptr {
|
||||||
return flattenPointer(val.Elem())
|
return flattenValue(val.Elem())
|
||||||
}
|
}
|
||||||
|
|
||||||
if val.Kind() != reflect.Struct {
|
if val.Kind() != reflect.Struct {
|
||||||
|
|
Loading…
Reference in a new issue