From dd3a62a1ea6cb650deda5cbf1800e949e1aacf3c Mon Sep 17 00:00:00 2001
From: sherzinger <sascha.herzinger@uni.lu>
Date: Fri, 25 Jan 2019 13:52:01 +0100
Subject: [PATCH] rounding progress status

---
 frontend-js/src/main/js/map/data/ReferenceGenome.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/frontend-js/src/main/js/map/data/ReferenceGenome.js b/frontend-js/src/main/js/map/data/ReferenceGenome.js
index 2b0d4d4c06..bf2753eca6 100644
--- a/frontend-js/src/main/js/map/data/ReferenceGenome.js
+++ b/frontend-js/src/main/js/map/data/ReferenceGenome.js
@@ -99,17 +99,18 @@ ReferenceGenome.prototype.setDownloadProgress = function (downloadProgress) {
  * @returns {string}
  */
 ReferenceGenome.prototype.getDownloadProgressStatus = function () {
-  if (this.getDownloadProgress() === 100) {
+  var progress = this.getDownloadProgress();
+  if (progress === 100) {
     if (this.getLocalUrl() !== undefined) {
       return "READY";
     } else {
       return "ERROR";
     }
   } else {
-    if (this.getDownloadProgress() === undefined) {
+    if (progress === undefined) {
       return "N/A";
     } else {
-      return this.getDownloadProgress().toString();
+      return progress.toFixed(2) + ' %';
     }
   }
 };
-- 
GitLab