Rename DownloadJobSize to GetEntriesSize
This commit is contained in:
parent
c967253f80
commit
bc199bca4b
|
@ -44,8 +44,9 @@ type Log struct {
|
||||||
EndExclusive time.Time `json:"end_exclusive"`
|
EndExclusive time.Time `json:"end_exclusive"`
|
||||||
} `json:"temporal_interval"`
|
} `json:"temporal_interval"`
|
||||||
|
|
||||||
|
// certspotter-specific extensions
|
||||||
|
GetEntriesSize int `json:"get_entries_size,omitempty"`
|
||||||
DownloadWorkers int `json:"certspotter_download_workers,omitempty"`
|
DownloadWorkers int `json:"certspotter_download_workers,omitempty"`
|
||||||
DownloadJobSize int `json:"certspotter_download_job_size,omitempty"`
|
|
||||||
|
|
||||||
// TODO: add previous_operators
|
// TODO: add previous_operators
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,8 @@ const (
|
||||||
func downloadJobSize(ctlog *loglist.Log) uint64 {
|
func downloadJobSize(ctlog *loglist.Log) uint64 {
|
||||||
if ctlog.IsStaticCTAPI() {
|
if ctlog.IsStaticCTAPI() {
|
||||||
return ctclient.StaticTileWidth
|
return ctclient.StaticTileWidth
|
||||||
} else if ctlog.DownloadJobSize != 0 {
|
} else if ctlog.GetEntriesSize != 0 {
|
||||||
return uint64(ctlog.DownloadJobSize)
|
return uint64(ctlog.GetEntriesSize)
|
||||||
} else {
|
} else {
|
||||||
return 256
|
return 256
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue