mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Merge pull request #1229 from weaveworks/cpu-no-connection
Reduce CPU consumption if UI cannot connect to backend
This commit is contained in:
@@ -112,7 +112,7 @@ export function getTopologies(options) {
|
||||
receiveError(url);
|
||||
topologyTimer = setTimeout(() => {
|
||||
getTopologies(options);
|
||||
}, TOPOLOGY_INTERVAL / 2);
|
||||
}, TOPOLOGY_INTERVAL);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -998,7 +998,7 @@ h2 {
|
||||
}
|
||||
|
||||
&.status-loading {
|
||||
animation: blinking 2.0s infinite @base-ease;
|
||||
animation: blinking 2.0s 150 @base-ease; // keep blinking for 5 minutes
|
||||
text-transform: none;
|
||||
color: @text-color;
|
||||
}
|
||||
@@ -1073,9 +1073,9 @@ h2 {
|
||||
}
|
||||
|
||||
@keyframes blinking {
|
||||
0%, 100% {
|
||||
0%, 50%, 100% {
|
||||
opacity: 1.0;
|
||||
} 50% {
|
||||
} 25% {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user