Commit 7b45a2ec by Torkel Ödegaard

Small fix to scripted async dashboard example

parent 48eb2083
...@@ -35,11 +35,9 @@ return function(callback) { ...@@ -35,11 +35,9 @@ return function(callback) {
// Set a title // Set a title
dashboard.title = 'Scripted dash'; dashboard.title = 'Scripted dash';
dashboard.services.filter = { dashboard.time = {
time: { from: "now-" + (ARGS.from || timspan),
from: "now-" + (ARGS.from || timspan), to: "now"
to: "now"
}
}; };
var rows = 1; var rows = 1;
...@@ -78,4 +76,4 @@ return function(callback) { ...@@ -78,4 +76,4 @@ return function(callback) {
callback(dashboard); callback(dashboard);
}); });
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment