Skip to content

Commit

Permalink
avoid float numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
w17 committed Aug 14, 2015
1 parent ec0b1c2 commit ed591fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 4 additions & 6 deletions plugins/proclist/Plist.cpp
Expand Up @@ -683,15 +683,13 @@ void DumpNTCounters(HANDLE InfoFile, PerfThread& Thread, DWORD dwPid, DWORD dwTh
break;
case PERF_COUNTER_LARGE_RAWCOUNT: // same, large int
{
fprintf(InfoFile, L"%10.0f\n", (FLOAT)pdata->qwResults[i]);
fprintf(InfoFile, L"%10I64u\n", pdata->qwResults[i]);
}
break;
case PERF_100NSEC_TIMER:
{
// 64-bit Timer in 100 nsec units. Display delta divided by
// delta time. Display suffix: "%"
//fprintf(InfoFile, L"%10.0f%%\n", (FLOAT)pdata->qwResults[i]);
fprintf(InfoFile, L"%s %7.0f%%\n", PrintTime((ULONGLONG)pdata->qwCounters[i]), (FLOAT)pdata->qwResults[i]);
// 64-bit Timer in 100 nsec units. Display delta divided by delta time. Display suffix: "%"
fprintf(InfoFile, L"%s %7I64u%%\n", PrintTime((ULONGLONG)pdata->qwCounters[i]), pdata->qwResults[i]);
}
break;
case PERF_COUNTER_COUNTER:
Expand All @@ -703,7 +701,7 @@ void DumpNTCounters(HANDLE InfoFile, PerfThread& Thread, DWORD dwPid, DWORD dwTh
case PERF_COUNTER_BULK_COUNT: //PERF_COUNTER_BULK_COUNT
{
// 64-bit Counter. Divide delta by delta time. Display Suffix: "/sec"
fprintf(InfoFile, L"%10.0f %5.0f%s\n", (FLOAT)pdata->qwCounters[i], (FLOAT)pdata->qwResults[i], GetMsg(MperSec));
fprintf(InfoFile, L"%10I64u %5I64u%s\n", pdata->qwCounters[i], pdata->qwResults[i], GetMsg(MperSec));
}
break;
default:
Expand Down
4 changes: 4 additions & 0 deletions plugins/proclist/changelog
@@ -1,3 +1,7 @@
w17 14.08.2015 23:57:07 +0300 - build 182

1. avoid using float numbers

zg 20.03.2015 23:42:22 +0200 - build 181

1. Far 3.0 API 4321
Expand Down
2 changes: 1 addition & 1 deletion plugins/proclist/version.hpp
@@ -1,6 +1,6 @@
#include "farversion.hpp"

#define PLUGIN_BUILD 181
#define PLUGIN_BUILD 182
#define PLUGIN_DESC L"Process List for FAR Manager"
#define PLUGIN_NAME L"ProcList"
#define PLUGIN_FILENAME L"ProcList.dll"
Expand Down

0 comments on commit ed591fa

Please sign in to comment.