Browse Source

Disabling memory autokill

AGP
Evgeny Gagua 2 years ago
parent
commit
4cd22e8d64
  1. 4
      lib/App/common/hardwareManager.cpp
  2. 8
      lib/App/common/kernelModuleEmbedVideo.cpp

4
lib/App/common/hardwareManager.cpp

@ -1432,12 +1432,12 @@ bool hardwareManager::updateSysInfo( DBC_SYS_LOAD_INFO *ptr ){
# echo 3 > /proc/sys/vm/drop_caches
*/
system( "echo 1 > /proc/sys/vm/drop_caches" );
//system( "echo 1 > /proc/sys/vm/drop_caches" );
if( m_bCacheCleanCounter ) {
m_bCacheCleanCounter--;
} else {
// KillSellf
kill( getpid(), 9 );
// kill( getpid(), 9 );
};
};
} else {

8
lib/App/common/kernelModuleEmbedVideo.cpp

@ -2668,11 +2668,11 @@ bool streamHandler::openSegmentA( void ){
getPFTS( &ts );
m_sStreamSegmentInfo[0].streamTSS = ts.seconds;
m_sStreamSegmentInfo[0].streamTMS = ts.milliseconds;
#ifdef DEBUG_EXTRA
char tB[128];
sprintf( tB, "A opened %d.%d", m_sStreamSegmentInfo[0].streamTSS, m_sStreamSegmentInfo[0].streamTMS );
LOG( tB );
#endif
strncpy( m_sStreamSegmentInfo[0].recordEXT, VIDEO_OUTPUT_CONTAINER, 6 );
m_sStreamSegmentInfo[0].streamFPS = m_sStreamData.fps;
m_sStreamSegmentInfo[0].streamWidth = m_pMaster->getWidh();
@ -2827,11 +2827,11 @@ bool streamHandler::openSegmentB( void ){
getPFTS( &ts );
m_sStreamSegmentInfo[1].streamTSS = ts.seconds;
m_sStreamSegmentInfo[1].streamTMS = ts.milliseconds;
#ifdef DEBUG_EXTRA
char tB[128];
sprintf( tB, "B opened %d.%d", m_sStreamSegmentInfo[1].streamTSS, m_sStreamSegmentInfo[1].streamTMS );
LOG( tB );
#endif
strncpy( m_sStreamSegmentInfo[1].recordEXT, VIDEO_OUTPUT_CONTAINER, 6 );
m_sStreamSegmentInfo[1].streamFPS = m_sStreamData.fps;
m_sStreamSegmentInfo[1].streamWidth = m_pMaster->getWidh();

Loading…
Cancel
Save