MCPcopy Create free account
hub / github.com/apache/solr / getProgressDetails

Function getProgressDetails

solr/webapp/web/js/angular/controllers/replication.js:67–86  ·  view source on GitHub ↗
(progress)

Source from the content-addressed store, hash-verified

65 });
66
67var getProgressDetails = function(progress) {
68
69 progress.timeRemaining = parseSeconds(progress.timeRemaining);
70 progress.totalPercent = parseInt(progress.totalPercent);
71 if (progress.totalPercent === 0) {
72 progress.totalPercentWidth = "1px";
73 } else {
74 progress.totalPercentWidth = progress.totalPercent + "%";
75 }
76 progress.currentFileSizePercent = parseInt(progress.currentFileSizePercent);
77
78 if (!progress.indexReplicatedAtList) {
79 progress.indexReplicatedAtList = [];
80 }
81
82 if (!progress.replicationFailedAtList) {
83 progress.replicationFailedAtList = [];
84 }
85 return progress;
86};
87
88var getIterations = function(follower) {
89

Callers 1

replication.jsFile · 0.85

Calls 1

parseSecondsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…