[Pkg-javascript-commits] [node-static] 30/151: fix mstat last-modified bug

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Tue Jan 7 23:17:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository node-static.

commit 407315bcecad8dd8a80ad08b47e433258e2268a0
Author: cloudhead <self at cloudhead.net>
Date:   Fri Aug 27 17:14:37 2010 -0400

    fix mstat last-modified bug
---
 lib/node-static/util.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/node-static/util.js b/lib/node-static/util.js
index 067a6ee..8dd8e04 100644
--- a/lib/node-static/util.js
+++ b/lib/node-static/util.js
@@ -19,7 +19,7 @@ this.mstat = function (dir, files, callback) {
                     return total + stat.size;
                 }, 0),
                 mtime: stats.reduce(function (latest, stat) {
-                    return latest.mtime > stat.mtime ? latest.mtime : stat.mtime;
+                    return latest > stat.mtime ? latest : stat.mtime;
                 }, 0),
                 ino: stats.reduce(function (total, stat) {
                     return total + stat.ino;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-static.git



More information about the Pkg-javascript-commits mailing list