# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: drupal/modules/system/admin.css
--- drupal/modules/system/admin.css Base (1.19)
+++ drupal/modules/system/admin.css Locally Modified (Based On 1.19)
@@ -85,6 +85,15 @@
 table.system-status-report tr.ok th {
   background-image: url(../../misc/watchdog-ok.png);
 }
+tr .number {
+  text-align: right;
+  padding-right: 2em;
+}
+tr.warning td.number {
+  background: url(../../misc/watchdog-warning.png) no-repeat right center;
+  font-weight: bold;
+  color: red;
+}
 
 /**
  * Formatting for theme configuration
Index: drupal/modules/system/system.admin.inc
--- drupal/modules/system/system.admin.inc Base (1.78)
+++ drupal/modules/system/system.admin.inc Locally Modified (Based On 1.78)
@@ -1804,11 +1804,21 @@
  * @return
  *   The output HTML.
  */
-function _system_sql($data, $keys) {
+function _system_sql($data, $keys, $zeros) {
   $rows = array();
   foreach ($keys as $key => $explanation) {
     if (isset($data[$key])) {
-      $rows[] = array(check_plain($key), check_plain($data[$key]), $explanation);
+      $rows[] = array(
+        'data' => array(
+          check_plain($key),
+          array(
+            'data' => check_plain($data[$key]),
+            'class' => 'number'
+          ),
+          $explanation,
+        ),
+        'class' => (($zeros[$key] && ($data[$key] != 0)) ? 'warning' : ''),
+      );
     }
   }
 
@@ -1827,6 +1837,8 @@
     $data[$entry->Variable_name] = $entry->Value;
   }
 
+  $zeros = array('Select_full_join' => TRUE, 'Select_range_check' => TRUE, 'Sort_scan' => TRUE, 'Qcache_lowmem_prunes' => TRUE);
+
   $output  = '<h2>' . t('Command counters') . '</h2>';
   $output .= _system_sql($data, array(
    'Com_select' => t('The number of <code>SELECT</code>-statements.'),
@@ -1835,7 +1847,7 @@
    'Com_delete' => t('The number of <code>DELETE</code>-statements.'),
    'Com_lock_tables' => t('The number of table locks.'),
    'Com_unlock_tables' => t('The number of table unlocks.')
-  ));
+  ), $zeros);
 
   $output .= '<h2>' . t('Query performance') . '</h2>';
   $output .= _system_sql($data, array(
@@ -1844,7 +1856,7 @@
    'Sort_scan' => t('The number of sorts done without using an index; should be zero.'),
    'Table_locks_immediate' => t('The number of times a lock could be acquired immediately.'),
    'Table_locks_waited' => t('The number of times the server had to wait for a lock.')
-  ));
+  ), $zeros);
 
   $output .= '<h2>' . t('Query cache information') . '</h2>';
   $output .= '<p>' . t('The MySQL query cache can improve performance of your site by storing the result of queries. Then, if an identical query is received later, the MySQL server retrieves the result from the query cache rather than parsing and executing the statement again.') . '</p>';
@@ -1853,7 +1865,7 @@
    'Qcache_hits' => t('The number of times MySQL found previous results in the cache.'),
    'Qcache_inserts' => t('The number of times MySQL added a query to the cache (misses).'),
    'Qcache_lowmem_prunes' => t('The number of times MySQL had to remove queries from the cache because it ran out of memory. Ideally should be zero.')
-  ));
+  ), $zeros);
 
   return $output;
 }
