[Pkg-owncloud-commits] [owncloud] 215/273: simplify formula and add comment
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:13:19 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit b6aeea8c0b920eff27a2dc69b79155f3384f7f89
Author: Morris Jobke <hey at morrisjobke.de>
Date: Wed Jul 2 17:20:56 2014 +0200
simplify formula and add comment
---
apps/files/js/filelist.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index c1dae4e..08d0acb 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -675,8 +675,9 @@
}).text(simpleSize);
tr.append(td);
- // date column
- var modifiedColor = Math.round(((Math.round((new Date()).getTime()) - mtime)/60/60/24*5) / 1000);
+ // date column (1000 milliseconds to seconds, 60 seconds, 60 minutes, 24 hours)
+ // difference in days multiplied by 5 - brightest shade for files older than 32 days (160/5)
+ var modifiedColor = Math.round(((new Date()).getTime() - mtime )/1000/60/60/24*5 );
// ensure that the brightest color is still readable
if (modifiedColor >= '160') {
modifiedColor = 160;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list