mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-11 18:32:50 +00:00
updated sensor page as adjusted time for connection status
This commit is contained in:
@@ -16,7 +16,7 @@ app.controller('SensorsController', function($scope, $http) {
|
||||
|
||||
$scope.information[i].date = date.toLocaleString('en-US', options);
|
||||
|
||||
if ((Date.now() - date) < 120000) {
|
||||
if ((Date.now() - date) < 420000) {
|
||||
$scope.information[i].status = "Connected";
|
||||
$scope.information[i].css = "colorGreen";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user