Path *string `json:"path,omitempty"`
Chunked *uint64 `json:"chunked,omitempty"`
MinSize *uint64 `json:"minsize,omitempty"`
+ MaxSize *uint64 `json:"maxsize,omitempty"`
}
type CallJSON struct {
var freqPath *string
freqChunked := int64(MaxFileSize)
var freqMinSize int64
+ freqMaxSize := int64(MaxFileSize)
if yml.Freq != nil {
f := yml.Freq
if f.Path != nil {
if f.MinSize != nil {
freqMinSize = int64(*f.MinSize) * 1024
}
+ if f.MaxSize != nil {
+ freqMaxSize = int64(*f.MaxSize) * 1024
+ }
}
defRxRate := 0
FreqPath: freqPath,
FreqChunked: freqChunked,
FreqMinSize: freqMinSize,
+ FreqMaxSize: freqMaxSize,
Calls: calls,
Addrs: yml.Addrs,
RxRate: defRxRate,