<?php
set_time_limit(0);

// Configuration
include 'config/config.php';

// Version Functions
include 'functions/getVersion.php';
include 'functions/checkVersion.php';

// Debugging Functions
include 'functions/debug.php';

// Stats Functions
include 'functions/loadAvg.php';
include 'functions/memory.php';

echo "LinMon slave version ".getVersion("version")." started \n\n";
echo checkVersion();
debug_collectionInterval($config['debug'], $config['updateinterval']);

while (true){
	debug_collectionInfoStart($config['debug']);
	
	collect_loadAvg($config['debug']);
    collect_memory();
	
    debug_collectionInfoEnd($config['debug']);
	sleep($config['updateinterval']);
}
?>
<?php
set_time_limit(0);

// Configuration
include 'config/config.php';

// Version Functions
include 'functions/getVersion.php';
include 'functions/checkVersion.php';

// Debugging Functions
include 'functions/debug.php';

// Stats Functions
include 'functions/loadAvg.php';
include 'memory.php';

echo "LinMon slave version ".getVersion("version")." started \n\n";
echo checkVersion();
debug_collectionInterval($config['debug'], $config['updateinterval']);

while (true){
	debug_collectionInfoStart($config['debug']);
	
	collect_loadAvg($config['debug']);
    collect_memory();
	
    debug_collectionInfoEnd($config['debug']);
	sleep($config['updateinterval']);
}
?>
--- 
+++ 
@@ -13,7 +13,7 @@
 
 // Stats Functions
 include 'functions/loadAvg.php';
-include 'memory.php';
+include 'functions/memory.php';
 
 echo "LinMon slave version ".getVersion("version")." started \n\n";
 echo checkVersion();
Include the correct memory file (oops)
