diff --git a/app/femr/business/services/system/UpdatesService.java b/app/femr/business/services/system/UpdatesService.java index d0b743585..0c3b02d2d 100644 --- a/app/femr/business/services/system/UpdatesService.java +++ b/app/femr/business/services/system/UpdatesService.java @@ -84,6 +84,7 @@ public ServiceResponse> updateNetworkStatuses() ArrayList data = new ArrayList<>(); try { data = BackEndControllerHelper.executeSpeedTestScript("/usr/src/speedtest/sptest.py"); + //data = BackEndControllerHelper.executeSpeedTestScript("speedtest/sptest.py"); //Update Status Float Ping = Float.parseFloat(data.get(2)); String updatedStatus = "Connection stable"; diff --git a/app/femr/ui/views/admin/updates/manage.scala.html b/app/femr/ui/views/admin/updates/manage.scala.html index adf8eec08..bbc6a9cdc 100644 --- a/app/femr/ui/views/admin/updates/manage.scala.html +++ b/app/femr/ui/views/admin/updates/manage.scala.html @@ -18,7 +18,8 @@ } - @downloadSpeed = @{viewModel.getNetworkStatus.get("Download").substring(0, viewModel.getNetworkStatus.get("Download").indexOf(".")).toInt} +@downloadSpeed = @{ viewModel.getNetworkStatus.get("Download").split(" ")(0).toFloat.toInt } + @admin("Updates", currentUser, styles = additionalStyles, assets = assets, message = additionalMessages) {