2020-11-01 22:09:36 +00:00
|
|
|
package adguard
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
const (
|
|
|
|
enabledStatus = "enabled"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Stats struct {
|
|
|
|
AvgProcessingTime float64 `json:"avg_processing_time"`
|
|
|
|
}
|
2020-11-01 23:27:18 +00:00
|
|
|
|
|
|
|
// ToString method returns a string of the current statistics struct.
|
|
|
|
func (s *Stats) ToString() string {
|
|
|
|
return fmt.Sprintf("Average Processing Time %d s", s.AvgProcessingTime)
|
|
|
|
}
|