Skip to content

Commit

Permalink
Unique Count aggregated
Browse files Browse the repository at this point in the history
  • Loading branch information
difemaro committed Oct 30, 2024
1 parent d995d56 commit f50cb10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extensiones/Samples/AutoRefresh_seconds/AutoRefresh.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
<div class="container">
<p id="mainContent">
<div id="active" style="display: none;">
Refreshing <b><span id="datasourceCount">0</span></b> datasource(s) every <b><span id="interval">5</span></b> seconds. Next refresh at <b><span id="nextrefresh">12:00:00</span></b>
<p>Refreshing <b><span id="datasourceCount">0</span></b> datasource(s) every <b><span id="interval">5</span></b> seconds. Next refresh at <b><span id="nextrefresh">12:00:00</span></b></p>
<p>Unique datasources <span id="uniqueCount">0</span></p>
</div>
<div id="inactive">
<table style="margin-bottom:0px">
Expand Down
1 change: 1 addition & 0 deletions Extensiones/Samples/AutoRefresh_seconds/AutoRefresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@

// Initial collection of unique data sources and setup of next refresh time
collectUniqueDataSources().then(() => {
$('#uniqueCount').text(uniqueDataSources.length); // Use length for array size
refreshDataSources(); // Start the refresh cycle after collecting data sources
updateNextRefreshTime(interval);
});
Expand Down

0 comments on commit f50cb10

Please sign in to comment.