Skip to content

Commit f8fdd49

Browse files
committed
fix
1 parent 3c994e1 commit f8fdd49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ydb/core/kqp/runtime/kqp_compute_scheduler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,9 @@ struct TComputeScheduler::TImpl {
226226
void CreateGroup(TString groupName, double maxShare, NMonotonic::TMonotonic now) {
227227
PoolId[groupName] = Records.size();
228228
auto group = std::make_unique<TSchedulerEntity::TGroupRecord>();
229+
group->Share = maxShare;
229230
group->MutableStats.Next()->LastNowRecalc = now;
230-
group->MutableStats.Next()->Weight = maxShare;
231+
group->MutableStats.Next()->Weight = SumCores * maxShare;
231232
Records.push_back(std::move(group));
232233
}
233234
};

0 commit comments

Comments
 (0)