mirror of
https://github.com/openharmony/notification_ces_standard.git
synced 2026-08-24 22:31:33 -04:00
codedex modify
Signed-off-by: fangJinliang1 <fangjinliang1@huawei.com> Change-Id: I741386116d41dca99f6ba4181ffd89d7ce36eaf6
This commit is contained in:
@@ -466,10 +466,11 @@ void CommonEventControlManager::ProcessNextOrderedEvent(bool isSendMsg)
|
||||
sp = orderedEventQueue_.front();
|
||||
bool forceReceive = false;
|
||||
size_t numReceivers = sp->receivers.size();
|
||||
int64_t nowSysTime = SystemTime::GetNowSysTime();
|
||||
uint64_t nowSysTime = SystemTime::GetNowSysTime();
|
||||
|
||||
if (sp->dispatchTime > 0) {
|
||||
if ((numReceivers > 0) && (nowSysTime > sp->dispatchTime + (DOUBLE * TIMEOUT * numReceivers))) {
|
||||
if ((numReceivers > 0) && (nowSysTime > static_cast<uint64_t>(sp->dispatchTime) +
|
||||
(DOUBLE * TIMEOUT * numReceivers))) {
|
||||
CurrentOrderedEventTimeout(false);
|
||||
forceReceive = true;
|
||||
sp->state = OrderedEventRecord::IDLE;
|
||||
|
||||
@@ -137,7 +137,7 @@ void CommonEventSubscriberManager::DumpDetailed(
|
||||
std::string events = format + "\tEvent: ";
|
||||
std::string separator;
|
||||
size_t countSize = record->eventSubscribeInfo->GetMatchingSkills().CountEvent();
|
||||
for (auto eventNum = 0; eventNum < countSize; ++eventNum) {
|
||||
for (size_t eventNum = 0; eventNum < countSize; ++eventNum) {
|
||||
if (eventNum == 0) {
|
||||
separator = "";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user