Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2401d93

Browse files
author
Amit Kapila
committed
Fix coverity complaint about commit40d964e.
The coverity complained that dividing integer expressions and thenconverting the integer quotient to type "double" would lose fractionalpart. Typecasting one of the arguments of expression with double shouldfix the report.Author: Mahendra Singh ThalorReviewed-by: Amit KapilaDiscussion:https://postgr.es/m/20200329224818.6phnhv7o2q2rfovf@alap3.anarazel.de
1 parent08481ee commit2401d93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/vacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,7 @@ compute_parallel_delay(void)
20772077
VacuumCostBalanceLocal+=VacuumCostBalance;
20782078

20792079
if ((shared_balance >=VacuumCostLimit)&&
2080-
(VacuumCostBalanceLocal>0.5* (VacuumCostLimit /nworkers)))
2080+
(VacuumCostBalanceLocal>0.5* ((double)VacuumCostLimit /nworkers)))
20812081
{
20822082
/* Compute sleep time based on the local cost balance */
20832083
msec=VacuumCostDelay*VacuumCostBalanceLocal /VacuumCostLimit;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp