Switch to unified view

a/src/index/beaglequeue.cpp b/src/index/beaglequeue.cpp
...
...
38
#include "transcode.h"
38
#include "transcode.h"
39
#include "cancelcheck.h"
39
#include "cancelcheck.h"
40
40
41
#include <vector>
41
#include <vector>
42
#include <fstream>
42
#include <fstream>
43
#include <sstream>
43
44
using namespace std;
44
using namespace std;
45
45
46
#include <sys/stat.h>
46
#include <sys/stat.h>
47
47
48
48
...
...
408
        // metadata.
408
        // metadata.
409
        if (dotdoc.fmtime.empty())
409
        if (dotdoc.fmtime.empty())
410
            dotdoc.fmtime = ascdate;
410
            dotdoc.fmtime = ascdate;
411
411
412
        char cbuf[100]; 
412
        char cbuf[100]; 
413
        sprintf(cbuf, OFFTPC, stp->st_size);
413
        sprintf(cbuf, "%lld", (long long)stp->st_size);
414
        dotdoc.pcbytes = cbuf;
414
        dotdoc.pcbytes = cbuf;
415
415
416
        // Document signature for up to date checks: none. 
416
        // Document signature for up to date checks: none. 
417
        dotdoc.sig.clear();
417
        dotdoc.sig.clear();
418
        
418
        
...
...
455
455
456
        if (doc.fmtime.empty())
456
        if (doc.fmtime.empty())
457
            doc.fmtime = ascdate;
457
            doc.fmtime = ascdate;
458
458
459
        char cbuf[100]; 
459
        char cbuf[100]; 
460
        sprintf(cbuf, OFFTPC, stp->st_size);
460
        sprintf(cbuf, "%lld", (long long)stp->st_size);
461
        doc.pcbytes = cbuf;
461
        doc.pcbytes = cbuf;
462
        // Document signature for up to date checks: none. 
462
        // Document signature for up to date checks: none. 
463
        doc.sig.clear();
463
        doc.sig.clear();
464
        doc.url = dotdoc.url;
464
        doc.url = dotdoc.url;
465
465