Skip to content

Commit

Permalink
Fix Division by Zero (#13873)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hor911 authored Jan 27, 2025
1 parent 1135440 commit 81ace6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/public/lib/ydb_cli/common/plan2svg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@ TString TPlanVisualizer::PrintSvg() {
<< "</g>" << Endl;

offsetY += TIME_HEIGHT;
if (!p.TotalCpuTime.Deriv.empty()) {
if (!p.TotalCpuTime.Deriv.empty() && p.TotalCpuTime.MaxTime > p.TotalCpuTime.MinTime) {

auto tx0 = Config.TimelineLeft;
auto tw = Config.TimelineWidth;
Expand Down

0 comments on commit 81ace6a

Please sign in to comment.