diff --git a/loglist/schema.go b/loglist/schema.go index bb210d8..d6d22de 100644 --- a/loglist/schema.go +++ b/loglist/schema.go @@ -44,8 +44,9 @@ type Log struct { EndExclusive time.Time `json:"end_exclusive"` } `json:"temporal_interval"` + // certspotter-specific extensions + GetEntriesSize int `json:"get_entries_size,omitempty"` DownloadWorkers int `json:"certspotter_download_workers,omitempty"` - DownloadJobSize int `json:"certspotter_download_job_size,omitempty"` // TODO: add previous_operators } diff --git a/monitor/monitor.go b/monitor/monitor.go index 097519d..04c3bfa 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -35,8 +35,8 @@ const ( func downloadJobSize(ctlog *loglist.Log) uint64 { if ctlog.IsStaticCTAPI() { return ctclient.StaticTileWidth - } else if ctlog.DownloadJobSize != 0 { - return uint64(ctlog.DownloadJobSize) + } else if ctlog.GetEntriesSize != 0 { + return uint64(ctlog.GetEntriesSize) } else { return 256 }