Revision: 34630
http://sourceforge.net/p/opalvoip/code/34630
Author: rjongbloed
Date: 2016-02-16 10:41:04 +0000 (Tue, 16 Feb 2016)
Log Message:
-----------
Fixed unsigned for negative numbers in OpenPhone statistics.
Modified Paths:
--------------
opal/trunk/samples/openphone/main.cxx
Modified: opal/trunk/samples/openphone/main.cxx
===================================================================
--- opal/trunk/samples/openphone/main.cxx 2016-02-16 10:23:36 UTC (rev 34629)
+++ opal/trunk/samples/openphone/main.cxx 2016-02-16 10:41:04 UTC (rev 34630)
@@ -2026,7 +2026,7 @@
" disguised or hidden in any way.\n"
"\n"
"Part of the Open Phone Abstraction Library, http://www.opalvoip.org\n"
- " OPAL Version: " << OpalGetVersion() << "\n"
+ " OPAL Version: " << OpalGetVersion() << "\n"
" PTLib Version: " << PProcess::GetLibVersion() << '\n';
wxMessageDialog dialog(this, text, wxT("About ..."), wxOK);
dialog.ShowModal();
@@ -7987,7 +7987,10 @@
#define STATISTICS_FIELD_SPRINTF(type, name, field) \
STATISTICS_FIELD_BEG(type, name) \
- value.sprintf(m_printFormat, statistics.field); \
+ if (statistics.field >= 0) \
+ value.sprintf(m_printFormat, statistics.field); \
+ else \
+ value.clear(); \
STATISTICS_FIELD_END(type, name)
#define STATISTICS_FIELD_SPRINTF_NZ(type, name, field) \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|