From 2387afb53b11a1a5e35123dd398d0655ee7161fe Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 4 Aug 2009 15:00:40 -0700 Subject: [PATCH] uClient: fill_stat now fills times properly --- src/client/Client.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index cb17ee0e5350f..a4f5da06caeb9 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -3159,9 +3159,9 @@ int Client::fill_stat(Inode *in, struct stat *st, frag_info_t *dirstat, nest_inf st->st_nlink = in->nlink; st->st_uid = in->uid; st->st_gid = in->gid; - st->st_ctime = MAX(in->ctime, in->mtime); - st->st_atime = in->atime; - st->st_mtime = in->mtime; + st->st_ctime = MAX(in->ctime.sec(), in->mtime.sec()); + st->st_atime = in->atime.sec(); + st->st_mtime = in->mtime.sec(); if (in->is_dir()) { //st->st_size = in->dirstat.size(); st->st_size = in->rstat.rbytes; -- 2.39.5