(ds *stats.DaemonStats, name string)
| 586 | } |
| 587 | |
| 588 | func GetNamedStatsVal(ds *stats.DaemonStats, name string) int64 { |
| 589 | v, ok := ds.Tracker[name] |
| 590 | if !ok { |
| 591 | return 0 |
| 592 | } |
| 593 | return v.Value |
| 594 | } |
| 595 | |
| 596 | // FIXME: obsolete - remove and reimpl. the test that calls it |
| 597 | func GetDaemonStats(t *testing.T, u string) (stats map[string]interface{}) { |
no outgoing calls