Skip to content

Commit

Permalink
Changed scala file
Browse files Browse the repository at this point in the history
  • Loading branch information
bholt13 committed Nov 18, 2024
1 parent 3308ee4 commit 5e2cff5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/femr/business/services/system/UpdatesService.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public ServiceResponse<List<? extends INetworkStatus>> updateNetworkStatuses()
ArrayList<String> 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";
Expand Down
3 changes: 2 additions & 1 deletion app/femr/ui/views/admin/updates/manage.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit 5e2cff5

Please sign in to comment.