File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -1272,8 +1272,11 @@ async function load() {
12721272 )
12731273 } else {
12741274 var server_time = $dashboard_locals . info_runtime
1275+ console . log ( server_time )
1276+ // return int((t - ((t + UTC) % 86400) - 86400 * day) / 3600)
12751277 var datetime = server_time . current_time - server_time . diff / 1000.0 + ( + new Date ( ) - server_time . resp_timestamp ) / 1000.0 ;
1276- const previous = ( datetime + ( datetime % ( 24 * 3600 ) ) - 86400 * 30 ) ;
1278+ const previous = ( datetime + ( ( datetime ) % 86400 ) - 86400 * 30 ) ;
1279+ console . log ( resp )
12771280 const res = { }
12781281 for ( let i = 0 ; i < 30 ; i ++ ) {
12791282 var d = Tools . formatDate ( new Date ( ( previous + i * 86400 ) * 1000.0 ) )
@@ -1410,12 +1413,14 @@ async function load() {
14101413 ) ,
14111414 $dashboard_locals . clusters_info
14121415 )
1413-
1414- var observer = new ResizeObserver ( ( ) => {
1415- for ( var instance of Object . values ( $dashboard_locals . storage_echarts ) ) {
1416- instance . echart . resize ( ) ;
1417- }
1418- } )
1416+ const echarts_resize = ( ) => {
1417+ requestAnimationFrame ( ( ) => {
1418+ for ( var instance of Object . values ( $dashboard_locals . storage_echarts ) ) {
1419+ instance . echart . resize ( ) ;
1420+ }
1421+ } )
1422+ }
1423+ var observer = new ResizeObserver ( echarts_resize )
14191424
14201425 observer . observe ( statistics . origin ) ;
14211426
You can’t perform that action at this time.
0 commit comments