File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function get_linux_data()
7777{
7878 global $ context ;
7979
80- $ context ['current_time ' ] = strftime ( ' %B %d, % Y, %I:%M:%S %p ' );
80+ $ context ['current_time ' ] = date ( ' F j, Y, h:i:s A ' );
8181
8282 $ context ['load_averages ' ] = @implode ('' , @get_file_data ('/proc/loadavg ' ));
8383 if (!empty ($ context ['load_averages ' ]) && preg_match ('~^([^ ]+?) ([^ ]+?) ([^ ]+)~ ' , $ context ['load_averages ' ], $ matches ) != 0 )
@@ -864,7 +864,7 @@ function generate_status()
864864
865865 $ temp = array ();
866866 foreach ($ context ['top_cpu_usage ' ] as $ proc )
867- $ temp [$ proc [ ' percent ' ] ] = htmlspecialchars ($ proc ['name ' ]) . ' <em>( ' . $ proc ['number ' ] . ')</em> ' . number_format ($ proc ['percent ' ], 1 ) . '% ' ;
867+ $ temp [] = htmlspecialchars ($ proc ['name ' ]) . ' <em>( ' . $ proc ['number ' ] . ')</em> ' . number_format ($ proc ['percent ' ], 1 ) . '% ' ;
868868
869869 krsort ($ temp );
870870 echo implode (', ' , $ temp );
You can’t perform that action at this time.
0 commit comments