Revision: 5733
          http://jnode.svn.sourceforge.net/jnode/?rev=5733&view=rev
Author:   galatnm
Date:     2010-03-26 13:23:12 +0000 (Fri, 26 Mar 2010)

Log Message:
-----------
Fix dates.

Modified Paths:
--------------
    trunk/fs/src/fs/org/jnode/fs/ext2/Ext2Entry.java

Modified: trunk/fs/src/fs/org/jnode/fs/ext2/Ext2Entry.java
===================================================================
--- trunk/fs/src/fs/org/jnode/fs/ext2/Ext2Entry.java    2010-02-20 20:32:33 UTC 
(rev 5732)
+++ trunk/fs/src/fs/org/jnode/fs/ext2/Ext2Entry.java    2010-03-26 13:23:12 UTC 
(rev 5733)
@@ -17,7 +17,7 @@
  * along with this library; If not, write to the Free Software Foundation, 
Inc., 
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
- 
+
 package org.jnode.fs.ext2;
 
 import java.io.IOException;
@@ -30,11 +30,12 @@
 /**
  * @author Andras Nagy
  * 
- * In case of a directory, the data will be parsed to get the file-list by
- * Ext2Directory. In case of a regular file, no more processing is needed.
+ *         In case of a directory, the data will be parsed to get the file-list
+ *         by Ext2Directory. In case of a regular file, no more processing is
+ *         needed.
  * 
- * TODO: besides getFile() and getDirectory(), we will need getBlockDevice()
- * getCharacterDevice(), etc.
+ *         TODO: besides getFile() and getDirectory(), we will need
+ *         getBlockDevice() getCharacterDevice(), etc.
  */
 public class Ext2Entry extends AbstractFSEntry {
 
@@ -48,32 +49,32 @@
         this.type = type;
 
         log.setLevel(Level.INFO);
-        log.debug("Ext2Entry(iNode, name): name=" + name + (isDirectory() ? " 
is a directory " : "") +
-                (isFile() ? " is a file " : ""));
+        log.debug("Ext2Entry(iNode, name): name=" + name +
+                (isDirectory() ? " is a directory " : "") + (isFile() ? " is a 
file " : ""));
     }
 
     public long getLastChanged() throws IOException {
-        return iNode.getCtime();
+        return iNode.getCtime() * 1000;
     }
 
     public long getLastModified() throws IOException {
-        return iNode.getMtime();
+        return iNode.getMtime() * 1000;
     }
 
     public long getLastAccessed() throws IOException {
-        return iNode.getAtime();
+        return iNode.getAtime() * 1000;
     }
 
     public void setLastChanged(long lastChanged) throws IOException {
-        iNode.setCtime(lastChanged);
+        iNode.setCtime(lastChanged / 1000);
     }
 
     public void setLastModified(long lastModified) throws IOException {
-        iNode.setMtime(lastModified);
+        iNode.setMtime(lastModified / 1000);
     }
 
     public void setLastAccessed(long lastAccessed) throws IOException {
-        iNode.setAtime(lastAccessed);
+        iNode.setAtime(lastAccessed / 1000);
     }
 
     /**


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jnode-svn-commits mailing list
Jnode-svn-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jnode-svn-commits

Reply via email to