Skip to content

Commit caed7b3

Browse files
committed
no message
1 parent 409c009 commit caed7b3

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

tool3/mainthread.cpp

+17-4
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,22 @@ VOID c(VOID *)
119119
t7->SetPos(140.0*z.f); //after some runs with zero-divided args(or smth else like this) it refuses to deal any further
120120
}
121121
z.endgame = bren == q_torque ? min(z.endgame, (int)ceil(z.outofthis * 10)) : 0;
122-
if (z.endgame > 2) p.Format(L"days to go %2.1f", z.outofthis);
123-
if (z.endgame == 2) p.Format(L"days to go %2.1f / %2d", z.outofthis, (int)ceil(24 * z.outofthis));
124-
if (z.endgame == 1) p.Format(L"days to go %2.1f / %2d / %03d", z.outofthis, (int)ceil(24 * z.outofthis), (int)ceil(1440 * z.outofthis));
122+
switch (z.endgame)
123+
{
124+
case 0:
125+
p = L" right now : ";
126+
p = p + braze[bren].c_str();
127+
break;
128+
case 1:
129+
p.Format(L"days to go %2.1f / %2d / %03d", z.outofthis, (int)ceil(24 * z.outofthis), (int)ceil(1440 * z.outofthis));
130+
break;
131+
case 2:
132+
p.Format(L"days to go %2.1f / %2d", z.outofthis, (int)ceil(24 * z.outofthis));
133+
break;
134+
default:
135+
p.Format(L"days to go %2.1f", z.outofthis);
136+
break;
137+
}
125138
b7->SetWindowTextW((LPCWSTR)p);
126139
}
127140

@@ -141,7 +154,7 @@ VOID c(VOID *)
141154
else
142155
{
143156
X7.Format(" %.2f block/m", z2.q*60.0f);
144-
z.outofthis = (z2.block[0] - z2.block[2] + (z.block[0] - z.block[2] > 40000) * 22 * 40000) / (z2.q * 1440 * 60);
157+
z.outofthis = (z2.block[0] - z2.block[2] + (z2.block[0] - z2.block[2] > 40000) * 22 * 40000) / (z2.q * 1440 * 60);
145158
if (!(_statusfp()&(_EM_INVALID | _EM_ZERODIVIDE))) X8.Format("\\qr\\ri800\\fs30 days to go %.1f \\par\\ri0\\fs33\n", z.outofthis);
146159
dc->SetState(PBST_PAUSED);
147160
bhr->SetProgressState(hz, TBPF_PAUSED);

x64/Release/tool3.exe

512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)