mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-02 11:58:28 +00:00
parent
96bb1c8e29
commit
999d4a0e23
@ -853,6 +853,9 @@ angular.module('syncthing.core')
|
|||||||
// 32m 40s
|
// 32m 40s
|
||||||
// 2h 32m
|
// 2h 32m
|
||||||
// 4d 2h
|
// 4d 2h
|
||||||
|
// In case remaining scan time appears to be >31d, omit the
|
||||||
|
// details, i.e.:
|
||||||
|
// > 1 month
|
||||||
|
|
||||||
if (!$scope.scanProgress[folder]) {
|
if (!$scope.scanProgress[folder]) {
|
||||||
return "";
|
return "";
|
||||||
@ -872,6 +875,9 @@ angular.module('syncthing.core')
|
|||||||
var res = [];
|
var res = [];
|
||||||
if (seconds >= 86400) {
|
if (seconds >= 86400) {
|
||||||
days = Math.floor(seconds / 86400);
|
days = Math.floor(seconds / 86400);
|
||||||
|
if (days > 31) {
|
||||||
|
return '> 1 month';
|
||||||
|
}
|
||||||
res.push('' + days + 'd')
|
res.push('' + days + 'd')
|
||||||
seconds = seconds % 86400;
|
seconds = seconds % 86400;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user