Switch to unified view

a/src/common/beaglequeuecache.cpp b/src/common/beaglequeuecache.cpp
...
...
14
 *   Free Software Foundation, Inc.,
14
 *   Free Software Foundation, Inc.,
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 */
16
 */
17
17
18
#include "autoconfig.h"
18
#include "autoconfig.h"
19
20
#include <stdint.h>
19
21
20
#include "cstr.h"
22
#include "cstr.h"
21
#include "beaglequeuecache.h"
23
#include "beaglequeuecache.h"
22
#include "circache.h"
24
#include "circache.h"
23
#include "log.h"
25
#include "log.h"
...
...
35
    cnf->getConfParam("webcachemaxmbs", &maxmbs);
37
    cnf->getConfParam("webcachemaxmbs", &maxmbs);
36
    if ((m_cache = new CirCache(ccdir)) == 0) {
38
    if ((m_cache = new CirCache(ccdir)) == 0) {
37
    LOGERR("BeagleQueueCache: cant create CirCache object\n" );
39
    LOGERR("BeagleQueueCache: cant create CirCache object\n" );
38
    return;
40
    return;
39
    }
41
    }
40
    if (!m_cache->create(off_t(maxmbs)*1000*1024, CirCache::CC_CRUNIQUE)) {
42
    if (!m_cache->create(int64_t(maxmbs)*1000*1024, CirCache::CC_CRUNIQUE)) {
41
    LOGERR("BeagleQueueCache: cache file creation failed: "  << (m_cache->getReason()) << "\n" );
43
    LOGERR("BeagleQueueCache: cache file creation failed: "  << (m_cache->getReason()) << "\n" );
42
    delete m_cache;
44
    delete m_cache;
43
    m_cache = 0;
45
    m_cache = 0;
44
    return;
46
    return;
45
    }
47
    }