Merge pull request #1229 from weaveworks/cpu-no-connection

Reduce CPU consumption if UI cannot connect to backend
This commit is contained in:
David
2016-04-07 09:24:25 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ export function getTopologies(options) {
receiveError(url);
topologyTimer = setTimeout(() => {
getTopologies(options);
}, TOPOLOGY_INTERVAL / 2);
}, TOPOLOGY_INTERVAL);
}
});
}

View File

@@ -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;
}
}