public function sigInt()
    {
        $this->exit = true;
    }
}
// Main
$cli = new EnhancedIndexerCLI();
if (function_exists('pcntl_signal')) {
    // ensure things exit cleanly with ctrl+c
    declare (ticks=10);
    pcntl_signal(SIGINT, array($cli, 'sigInt'));
    pcntl_signal(SIGTERM, array($cli, 'sigInt'));
}
$conf['cachetime'] = 60 * 60;
// default is -1 which means cache isnt' used :(
$cli->run();
function return_bytes($size_str)
{
    switch (substr($size_str, -1)) {
        case 'M':
        case 'm':
            return (int) $size_str * 1048576;
        case 'K':
        case 'k':
            return (int) $size_str * 1024;
        case 'G':
        case 'g':
            return (int) $size_str * 1073741824;
        default:
            return $size_str;
    }