mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
[format]Js: format checktimedrift() success (#6850)
Signed-off-by: fuling <fuling.lgz@alibaba-inc.com>
This commit is contained in:
parent
87971fff90
commit
d276b5fb65
|
@ -237,7 +237,7 @@ Prometheus.Graph.prototype.checkTimeDrift = function() {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: PATH_PREFIX + "/api/v1/query?query=time()",
|
url: PATH_PREFIX + "/api/v1/query?query=time()",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(json, textStatus) {
|
success: function(json, textStatus) {
|
||||||
if (json.status !== "success") {
|
if (json.status !== "success") {
|
||||||
self.showError("Error querying time.");
|
self.showError("Error querying time.");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue