Fixed inconsistent type in contract and open of input side packets

This commit is contained in:
Alex K 2021-03-17 11:45:55 +02:00
parent a92cff7a60
commit 0bb1e1100b

View File

@ -101,7 +101,7 @@ absl::Status ThresholdingCalculator::Open(CalculatorContext* cc) {
} }
if (cc->InputSidePackets().HasTag("THRESHOLD")) { if (cc->InputSidePackets().HasTag("THRESHOLD")) {
threshold_ = cc->InputSidePackets().Tag("THRESHOLD").Get<float>(); threshold_ = cc->InputSidePackets().Tag("THRESHOLD").Get<double>();
} }
return absl::OkStatus(); return absl::OkStatus();
} }