diff options
-rw-r--r-- | paramiko/sftp_attr.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/paramiko/sftp_attr.py b/paramiko/sftp_attr.py index bdbda90d..adf46d2f 100644 --- a/paramiko/sftp_attr.py +++ b/paramiko/sftp_attr.py @@ -136,8 +136,9 @@ class SFTPAttributes (object): if self._flags & self.FLAG_PERMISSIONS: msg.add_int(self.st_mode) if self._flags & self.FLAG_AMTIME: - msg.add_int(self.st_atime) - msg.add_int(self.st_mtime) + # throw away any fractional seconds + msg.add_int(long(self.st_atime)) + msg.add_int(long(self.st_mtime)) if self._flags & self.FLAG_EXTENDED: msg.add_int(len(self.attr)) for key, val in self.attr.iteritems(): |