MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / GetBytesString

Function GetBytesString

sourcecommon/utils.cpp:547–560  ·  view source on GitHub ↗

---------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

545}
546//---------------------------------------------------------------------------
547AnsiString 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//---------------------------------------------------------------------------
562String GetBytesStringEng(ULONGLONG count)
563{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected