---------------------------------------------------------------------------
| 545 | } |
| 546 | //--------------------------------------------------------------------------- |
| 547 | AnsiString GetBytesString(DWORD count) |
| 548 | { |
| 549 | char buf[100]; |
| 550 | // Mb >= 2 |
| 551 | if( count >= 1048576 ) |
| 552 | wsprintf(buf, "%lu.%u ��", count/1048576, (WORD)((float)(count%1048576)/104857.60)); |
| 553 | // Kb >= 2 |
| 554 | else if( count >= 2048 ) |
| 555 | wsprintf(buf, "%lu.%u ��", count/1024, (WORD)((float)(count%1024)/102.40)); |
| 556 | // b >= 2 |
| 557 | else |
| 558 | wsprintf(buf, "%lu �", count); |
| 559 | return AnsiString(buf); |
| 560 | } |
| 561 | //--------------------------------------------------------------------------- |
| 562 | String GetBytesStringEng(ULONGLONG count) |
| 563 | { |
nothing calls this directly
no outgoing calls
no test coverage detected