Revision d74b5cdc
Added by Andreas Kohlbecker over 7 years ago
cdmlib-remote-webapp/src/main/webapp/js/cdm_ws_progress.js | ||
---|---|---|
101 | 101 |
|
102 | 102 |
var showProgress = function(monitor){ |
103 | 103 |
$progress_titel.text(monitor.taskName); |
104 |
var percentTwoDecimalDigits = Math.floor(monitor.percentage * 100) / 100;
|
|
104 |
var percentTwoDecimalDigits = Math.round(monitor.percentage * 100) / 100;
|
|
105 | 105 |
$progress_bar_value.text(percentTwoDecimalDigits + "%"); |
106 | 106 |
$progress_bar_indicator.css('width', percentTwoDecimalDigits + "%"); |
107 | 107 |
if(monitor.failed){ |
... | ... | |
110 | 110 |
$progress_status.text("Done"); |
111 | 111 |
isRunning = false; |
112 | 112 |
} else { |
113 |
$progress_status.text(monitor.subTask + " [chunk " + monitor.workDone + "/" + monitor.totalWork + "]");
|
|
113 |
$progress_status.text(monitor.subTask + " [work ticks: " + (Math.round(monitor.workDone * 100) / 100) + "/" + monitor.totalWork + "]");
|
|
114 | 114 |
} |
115 | 115 |
window.setTimeout(monitorProgess, pollInterval_ms); |
116 | 116 |
}; |
Also available in: Unified diff
ref #6086 solving the problems in the java-script of the web application monitor widget:
- chunk information: number rounded and label renamed
- Percentage number rounding fixed