Skip to content

Commit 0827b7f

Browse files
committedApr 26, 2017
[XRay][tools] Fixup definition for stat division.
Copy-pasta error. Follow-up to D29320. llvm-svn: 301376
1 parent 0316f7a commit 0827b7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎llvm/tools/llvm-xray/xray-graph.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ inline GraphRenderer::TimeStat operator*(const GraphRenderer::TimeStat &A,
223223
/// Hadamard Division of TimeStats
224224
inline GraphRenderer::TimeStat operator/(const GraphRenderer::TimeStat &A,
225225
const GraphRenderer::TimeStat &B) {
226-
return {A.Count * B.Count, A.Min * B.Min, A.Median * B.Median,
227-
A.Pct90 * B.Pct90, A.Pct99 * B.Pct99, A.Max * B.Max,
228-
A.Sum * B.Sum};
226+
return {A.Count / B.Count, A.Min / B.Min, A.Median / B.Median,
227+
A.Pct90 / B.Pct90, A.Pct99 / B.Pct99, A.Max / B.Max,
228+
A.Sum / B.Sum};
229229
}
230230
} // namespace xray
231231
} // namespace llvm

0 commit comments

Comments
 (0)
Please sign in to comment.