correct reporting of daemon timeouts

This commit is contained in:
matthias.ringwald 2010-11-22 17:33:51 +00:00
parent a5fc9b71d1
commit 9ddb5534ef

View File

@ -85,12 +85,12 @@ static void (*bluetooth_status_handler)(BLUETOOTH_STATE state) = dummy_bluetooth
static void daemon_no_connections_timeout(){
#ifdef USE_LAUNCHD
printf("No connection for %u seconds -> POWER OFF and quit\n", DAEMON_NO_CONNECTION_TIMEOUT);
printf("No connection for %u seconds -> POWER OFF and quit\n", DAEMON_NO_CONNECTION_TIMEOUT/1000);
hci_power_control( HCI_POWER_OFF);
hci_close();
exit(0);
#else
printf("No connection for %u seconds -> POWER OFF\n", DAEMON_NO_CONNECTION_TIMEOUT);
printf("No connection for %u seconds -> POWER OFF\n", DAEMON_NO_CONNECTION_TIMEOUT/1000);
hci_power_control( HCI_POWER_OFF);
#endif
}