diff --git a/src/zm_detector.cpp b/src/zm_detector.cpp index ca460131d..b07a9a419 100644 --- a/src/zm_detector.cpp +++ b/src/zm_detector.cpp @@ -241,7 +241,7 @@ void Detector::_onCloseEvent(Zone** zones, Event* event) { for(std::vector::iterator it = m_vnPluginZones.begin(); it != m_vnPluginZones.end(); ++it) { - string noteText = "[Zone "; + string noteText = " [Zone "; noteText += zones[*it]->Label(); noteText += "]\n"; diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 72d685cac..0c78f8dfb 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -202,7 +202,7 @@ void Event::createNotes( std::string ¬es ) for ( StringSetMap::const_iterator mapIter = noteSetMap.begin(); mapIter != noteSetMap.end(); mapIter++ ) { notes += mapIter->first; - notes += ": "; + notes += ":\n"; const StringSet &stringSet = mapIter->second; for ( StringSet::const_iterator setIter = stringSet.begin(); setIter != stringSet.end(); setIter++ ) { diff --git a/src/zm_monitor.cpp b/src/zm_monitor.cpp index b6184a167..cf0dc221f 100644 --- a/src/zm_monitor.cpp +++ b/src/zm_monitor.cpp @@ -3376,7 +3376,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z { alarm = true; score += zone->Score(); - zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() ); + zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() ); if ( !zone->IsPostProcEnabled() ) { zone->SetAlarm(); @@ -3424,7 +3424,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z alarm = true; zone->SetAlarm(); score += zone->Score(); - zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() ); + zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() ); if ( !zone->IsPostProcEnabled() ) { Debug( 3, "Zone is alarmed, zone score = %d", zone->Score() ); @@ -3454,7 +3454,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z alarm = true; zone->SetAlarm(); score += zone->Score(); - zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() ); + zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() ); if ( !zone->IsPostProcEnabled() ) { Debug( 3, "Zone is alarmed, zone score = %d", zone->Score() ); @@ -3486,7 +3486,7 @@ unsigned int Monitor::DetectMotion( const Image &comp_image, Event::StringSet &z alarm = true; zone->SetAlarm(); score += zone->Score(); - zoneSet.insert( ("[Zone " + std::string(zone->Label()) + "]\n").c_str() ); + zoneSet.insert( (" [Zone " + std::string(zone->Label()) + "]\n").c_str() ); if ( !zone->IsPostProcEnabled() ) { Debug( 3, "Zone is alarmed, zone score = %d", zone->Score() );