Skip to content

Commit 92e45bb

Browse files
authored
Don't use scientific notation when printing floats (#3)
1 parent 54b037a commit 92e45bb

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflow_build_windows.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
22
cl /std:c++20 /O2 /W4 /MT /arch:IA32 /utf-8 /permissive- /EHsc cachex.cpp
3+
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on -sse cachex.7z cachex.exe
4+
certutil -hashfile cachex.7z SHA256

.github/workflows/windows.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ jobs:
1818
- name: Build with MSVC
1919
shell: cmd
2020
run: .github/workflow_build_windows.bat
21+
22+
- uses: actions/upload-artifact@v3
23+
with:
24+
name: cachex Windows
25+
path: cachex.7z

cachex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,7 @@ void PrintUsage()
14061406

14071407
int main(int argc, char **argv)
14081408
{
1409+
std::cerr << std::fixed;
14091410
const char *DrivePath = nullptr;
14101411
int MaxReadSpeed = 0;
14111412
bool SpinDriveFlag = false;

0 commit comments

Comments
 (0)