Rename certspotter-specific loglist fields, again
This commit is contained in:
parent
56b190f7c0
commit
00fd77f6ed
|
@ -45,8 +45,8 @@ type Log struct {
|
|||
} `json:"temporal_interval"`
|
||||
|
||||
// certspotter-specific extensions
|
||||
GetEntriesSize int `json:"get_entries_size,omitempty"`
|
||||
ParallelGetEntries int `json:"parallel_get_entries,omitempty"`
|
||||
CertspotterDownloadSize int `json:"certspotter_download_size,omitempty"`
|
||||
CertspotterDownloadJobs int `json:"certspotter_download_jobs,omitempty"`
|
||||
|
||||
// TODO: add previous_operators
|
||||
}
|
||||
|
|
|
@ -35,16 +35,16 @@ const (
|
|||
func downloadJobSize(ctlog *loglist.Log) uint64 {
|
||||
if ctlog.IsStaticCTAPI() {
|
||||
return ctclient.StaticTileWidth
|
||||
} else if ctlog.GetEntriesSize != 0 {
|
||||
return uint64(ctlog.GetEntriesSize)
|
||||
} else if ctlog.CertspotterDownloadSize != 0 {
|
||||
return uint64(ctlog.CertspotterDownloadSize)
|
||||
} else {
|
||||
return 1000
|
||||
}
|
||||
}
|
||||
|
||||
func downloadWorkers(ctlog *loglist.Log) int {
|
||||
if ctlog.ParallelGetEntries != 0 {
|
||||
return ctlog.ParallelGetEntries
|
||||
if ctlog.CertspotterDownloadJobs != 0 {
|
||||
return ctlog.CertspotterDownloadJobs
|
||||
} else {
|
||||
return 1
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue