From 67a68ab1cfa3c279bdeead058778d86632494f0d Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 22 Oct 2021 15:41:18 +1100 Subject: [PATCH] Replace remove .size() with .length Change-Id: I3b74bf341fae3d36dd8c4a14e40fa3c76d353293 --- js/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dashboard.js b/js/dashboard.js index 4f2790b..2877329 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -434,7 +434,7 @@ function getExists(graphs, group, header) { * If not found in the CSV, take the first element */ function displayFocusGraph(graphs, dmin, dmax) { - if ($('#focus').children().size() > 0) { + if ($('#focus').children().length > 0) { return; } data = getValues(graphs, "total cpu usage", "idl")