minor cleanup on summary load
All checks were successful
Generic zig build / build (push) Successful in 5m24s
Generic zig build / publish-macos (push) Successful in 12s
Generic zig build / deploy (push) Successful in 19s

This commit is contained in:
Emil Lerch 2026-10-14 08:01:12 -07:00
parent 4a33f1267a
commit eaeb1c5587
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -325,19 +325,15 @@ pub fn loadPortfolioPrices(
symbol_progress.callback(), symbol_progress.callback(),
); );
// Print summary // `printLoadSummaryImpl` picks the wording (all cached, some failed, ...).
const total = symbol_progress.grand_total; printLoadSummary(io, color, .{
const from_cache = result.cached_count; .total = symbol_progress.grand_total,
const from_server = result.server_synced_count; .from_cache = result.cached_count,
const from_provider = result.provider_fetched_count; .from_server = result.server_synced_count,
const failed = result.failed_count; .from_provider = result.provider_fetched_count,
const stale = result.stale_count; .failed = result.failed_count,
.stale = result.stale_count,
if (from_cache == total) { });
printLoadSummary(io, color, .{ .total = total, .from_cache = from_cache, .from_server = from_server, .from_provider = from_provider, .failed = failed, .stale = stale });
} else {
printLoadSummary(io, color, .{ .total = total, .from_cache = from_cache, .from_server = from_server, .from_provider = from_provider, .failed = failed, .stale = stale });
}
return result; return result;
} }