public static void daemonLoop(CoffeeSaint coffeeSaint, Config config) throws Exception
	{
		for(;;)
		{
			Thread.sleep(config.getSleepTime() * 1000);

			if (!config.getRunGui() && config.getPerformanceDataFileName() != null)
			{
				try
				{
					Object [] result = loadNagiosData(null, -1, null);
					JavNag javNag = (JavNag)result[0];
					coffeeSaint.collectPerformanceData(javNag);
					coffeeSaint.collectLatencyData(javNag);
				}
				finally
				{
				}

			}

			coffeeSaint.cleanUp();
		}
	}