This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sdk:monitor-system-load [2016/07/06 13:44] – fachet | sdk:monitor-system-load [2016/08/01 11:56] – juraschek | ||
---|---|---|---|
Line 8: | Line 8: | ||
* Copyright 2016 NetModule AG, Switzerland (rfa) | * Copyright 2016 NetModule AG, Switzerland (rfa) | ||
*/ | */ | ||
- | # | + | CPUCORES=1; |
// 1 for NB1600, 2700, 2710, 3700, 3710 | // 1 for NB1600, 2700, 2710, 3700, 3710 | ||
// 2 for NB2800, NB3701, NB3711, NB3800 | // 2 for NB2800, NB3701, NB3711, NB3800 | ||
Line 18: | Line 18: | ||
if (s.loads[1] > 0.7 * CPUCORES) | if (s.loads[1] > 0.7 * CPUCORES) | ||
nb_syslog(" | nb_syslog(" | ||
- | if (s.loads[2] > 0.5 * CPUCORES) | + | if (s.loads[2] > 0.7 * CPUCORES) |
nb_syslog(" | nb_syslog(" | ||
sleep(60); | sleep(60); | ||
} | } | ||
</ | </ |