Commit b40af071 by Grégoire Pineau

Format seconds metric by week if needed

parent f3698cd6
......@@ -521,6 +521,10 @@ function($, _, moment) {
else if (size < 604800) {
return (size / 86400).toFixed(decimals) + " day";
}
// Less than one year, devide in week
else if (size < 31536000) {
return (size / 604800).toFixed(decimals) + " week";
}
return (size / 3.15569e7).toFixed(decimals) + " year";
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment