Skip to content

Commit

Permalink
PIRProcessDatabase: fix response ciphertext count (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
fboemer authored Nov 5, 2024
1 parent 5cd8813 commit 02af24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/PIRProcessDatabase/ProcessDatabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ extension ProcessKeywordDatabase.ShardValidationResult {
label: "keys"
)
descriptionDict["response size"] = try sizeString(byteCount: response.size(),
count: response.ciphertexts.count, label: "ciphertexts")
count: response.ciphertexts.flatMap { $0 }.count,
label: "ciphertexts")
descriptionDict["noise budget"] = String(format: "%.01f", noiseBudget)

let runtimeString = computeTimes.sorted().map { runtime in
Expand Down

0 comments on commit 02af24d

Please sign in to comment.