@@ -327,8 +327,8 @@ function top5_ping($display=false, $update=false, $force_update=false) {
327
327
array ($ user ['id ' ],$ panel_id ));
328
328
329
329
$ update_interval = db_fetch_cell_prepared ('SELECT refresh_interval FROM plugin_intropage_panel_data
330
- WHERE panel_id= ? AND user_id= 0 ' ,
331
- array ($ panel_id ));
330
+ WHERE panel_id= ? AND user_id= ? ' ,
331
+ array ($ panel_id, $ user [ ' id ' ] ));
332
332
333
333
334
334
if ( $ force_update || time () > ($ last_update + $ update_interval )) {
@@ -513,7 +513,7 @@ function cpuload($display=false, $update=false, $force_update=false) {
513
513
514
514
if ($ display ) {
515
515
$ result = db_fetch_row_prepared ("SELECT id, data, alarm, last_update,
516
- concatfloor (TIME_FORMAT(SEC_TO_TIME(refresh_interval), '%H') / 24), 'd ',
516
+ concat(floor (TIME_FORMAT(SEC_TO_TIME(refresh_interval), '%H') / 24), 'd ',
517
517
MOD(TIME_FORMAT(SEC_TO_TIME(refresh_interval), '%H'), 24), 'h:',
518
518
TIME_FORMAT(SEC_TO_TIME(refresh_interval), '%im')) AS recheck
519
519
FROM plugin_intropage_panel_data
@@ -2779,7 +2779,7 @@ function boost($display=false, $update=false, $force_update=false) {
2779
2779
$ next_run_time = read_config_option ('boost_next_run_time ' , true );
2780
2780
$ max_records = read_config_option ('boost_rrd_update_max_records ' , true );
2781
2781
$ max_runtime = read_config_option ('boost_rrd_update_max_runtime ' , true );
2782
- $ update_interval = read_config_option ('boost_rrd_update_interval ' , true );
2782
+ $ update_int = read_config_option ('boost_rrd_update_interval ' , true );
2783
2783
$ peak_memory = read_config_option ('boost_peak_memory ' , true );
2784
2784
$ detail_stats = read_config_option ('stats_detail_boost ' , true );
2785
2785
@@ -2885,7 +2885,7 @@ function boost($display=false, $update=false, $force_update=false) {
2885
2885
$ result ['data ' ] .= __ ('Last run duration: %s ' , $ lastduration , 'intropage ' ) . '<br/> ' ;
2886
2886
2887
2887
$ result ['data ' ] .= __ ('RRD Updates / Max: %s / %s ' , $ boost_rrds_updated != '' ? number_format_i18n ($ boost_rrds_updated , -1 ) : '- ' , number_format_i18n ($ max_records , -1 ), 'intropage ' ) . '<br/> ' ;
2888
- $ result ['data ' ] .= __ ('Update Frequency: %s ' , $ rrd_updates == '' ? __ ('N/A ' ) : $ boost_refresh_interval [$ update_interval ], 'intropage ' ) . '<br/> ' ;
2888
+ $ result ['data ' ] .= __ ('Update Frequency: %s ' , $ rrd_updates == '' ? __ ('N/A ' ) : $ boost_refresh_interval [$ update_int ], 'intropage ' ) . '<br/> ' ;
2889
2889
$ result ['data ' ] .= __ ('Next Start Time: %s ' , $ next_run_time , 'intropage ' ) . '<br/> ' ;
2890
2890
2891
2891
db_execute_prepared ('REPLACE INTO plugin_intropage_panel_data
0 commit comments