taskmgr: Fix messed up indentation of an if statement (PVS-Studio).
This commit is contained in:
parent
6b4bec8af5
commit
517a495737
|
@ -265,8 +265,8 @@ static void Graph_DrawMemUsageGraph(HDC hDC, HWND hWnd)
|
||||||
* So first find out how many bars we can fit
|
* So first find out how many bars we can fit
|
||||||
*/
|
*/
|
||||||
nBars = ((rcClient.bottom - rcClient.top) - 25) / 3;
|
nBars = ((rcClient.bottom - rcClient.top) - 25) / 3;
|
||||||
if (CommitChargeLimit)
|
if (CommitChargeLimit)
|
||||||
nBarsUsed = (nBars * (int)((CommitChargeTotal * 100) / CommitChargeLimit)) / 100;
|
nBarsUsed = (nBars * (int)((CommitChargeTotal * 100) / CommitChargeLimit)) / 100;
|
||||||
nBarsFree = nBars - nBarsUsed;
|
nBarsFree = nBars - nBarsUsed;
|
||||||
|
|
||||||
if (nBarsUsed < 0) nBarsUsed = 0;
|
if (nBarsUsed < 0) nBarsUsed = 0;
|
||||||
|
|
Loading…
Reference in New Issue