From 00fd77f6ed295c4f91864219325b89c0f156d32e Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Mon, 5 May 2025 10:29:06 -0400 Subject: [PATCH] Rename certspotter-specific loglist fields, again --- loglist/schema.go | 4 ++-- monitor/monitor.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/loglist/schema.go b/loglist/schema.go index b6a7e1d..8f30e0e 100644 --- a/loglist/schema.go +++ b/loglist/schema.go @@ -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 } diff --git a/monitor/monitor.go b/monitor/monitor.go index d1e98eb..08ed4bf 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -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 }