Permalink
Browse files

struct stat expects unix time, not mongo time

  • Loading branch information...
mikejs committed Sep 27, 2009
1 parent aa49d38 commit db24f864af1b06533a1a1bd2defe5d5a93a4ccd4
Showing with 2 additions and 2 deletions.
  1. +2 −2 operations.cpp
View
@@ -56,8 +56,8 @@ int gridfs_getattr(const char *path, struct stat *stbuf)
if(file_iter != open_files.end()) {
stbuf->st_mode = S_IFREG | 0777;
stbuf->st_nlink = 1;
- stbuf->st_ctime = mongo_time();
- stbuf->st_mtime = mongo_time();
+ stbuf->st_ctime = time(NULL);
+ stbuf->st_mtime = time(NULL);
stbuf->st_size = file_iter->second->getLength();
return 0;
}

0 comments on commit db24f86

Please sign in to comment.