a/src/query/reslistpager.cpp b/src/query/reslistpager.cpp
...
...
12
 *   You should have received a copy of the GNU General Public License
12
 *   You should have received a copy of the GNU General Public License
13
 *   along with this program; if not, write to the
13
 *   along with this program; if not, write to the
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
#ifdef HAVE_CONFIG_H
18
#include "autoconfig.h"
19
#endif
17
20
18
#include <stdio.h>
21
#include <stdio.h>
19
#include <stdlib.h>
22
#include <stdlib.h>
20
#include <math.h>
23
#include <math.h>
21
#include <time.h>
24
#include <time.h>
...
...
161
    strftime(datebuf, 99, "&nbsp;%Y-%m-%d&nbsp;%H:%M:%S&nbsp;%Z", tm);
164
    strftime(datebuf, 99, "&nbsp;%Y-%m-%d&nbsp;%H:%M:%S&nbsp;%Z", tm);
162
#endif
165
#endif
163
    }
166
    }
164
167
165
    // Size information. We print both doc and file if they differ a lot
168
    // Size information. We print both doc and file if they differ a lot
166
    long fsize = -1, dsize = -1;
169
    off_t fsize = -1, dsize = -1;
167
    if (!doc.dbytes.empty())
170
    if (!doc.dbytes.empty())
168
    dsize = atol(doc.dbytes.c_str());
171
    dsize = atol(doc.dbytes.c_str());
169
    if (!doc.fbytes.empty())
172
    if (!doc.fbytes.empty())
170
    fsize = atol(doc.fbytes.c_str());
173
    fsize = atol(doc.fbytes.c_str());
171
    string sizebuf;
174
    string sizebuf;