<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,7 +11,10 @@
 
 require 'gtk2'
 
-redline_percentage = 80
+redline_percentage = 90
+yellowline_percentage = 80
+
+yellowline_enable = true
 
 tooltip_setting = &quot;I turn red when some program is using more than #{redline_percentage}% of any cpu or aggregate of cpus.&quot;
 puts tooltip_setting
@@ -29,21 +32,31 @@ timeout = Gtk::timeout_add(3000) {
 program_cpu_usage_info = `#{get_cpu_info}`
 
 bad_programs = &quot;&quot;
+mean_programs = &quot;&quot;
 
 for line in program_cpu_usage_info.lines
 
  if line.split(&quot; &quot;)[0].to_i &gt; 0 &amp;&amp; line.split(&quot; &quot;)[8].to_i &gt; redline_percentage
   bad_programs = bad_programs + line + &quot;\n&quot;
  end
+
+ if line.split(&quot; &quot;)[0].to_i &gt; 0 &amp;&amp; line.split(&quot; &quot;)[8].to_i &gt; yellowline_percentage
+  mean_programs = mean_programs + line + &quot;\n&quot;
+ end
 end
 
 if bad_programs != &quot;&quot;
  $icon.icon_name = 'gdu-smart-failing'
  $icon.tooltip = bad_programs
 else
- if $icon.icon_name == 'gdu-smart-failing'
-  $icon.icon_name = 'gdu-smart-healthy'
-  $icon.tooltip = 'Just fine now.'
+ if yellowline_enable &amp;&amp; mean_programs != &quot;&quot;
+  $icon.icon_name = 'gdu-smart-threshold'
+  $icon.tooltip = mean_programs
+ else
+  if $icon.icon_name != 'gdu-smart-healthy'
+   $icon.icon_name = 'gdu-smart-healthy'
+   $icon.tooltip = 'Just fine now.'
+  end
  end
 end
 </diff>
      <filename>redline.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dbf0fb270bd4790d94af358677a7d7d837690b4c</id>
    </parent>
  </parents>
  <author>
    <name>oneman</name>
    <email>oneman@blacktower.(none)</email>
  </author>
  <url>http://github.com/oneman/redline/commit/074c3759b2f20709a87b323374052d020aa96fd1</url>
  <id>074c3759b2f20709a87b323374052d020aa96fd1</id>
  <committed-date>2009-11-03T00:13:53-08:00</committed-date>
  <authored-date>2009-11-03T00:13:53-08:00</authored-date>
  <message>add yellowline and change default redline yellowline percents</message>
  <tree>36ed201f1e9b522f6f8a7a2ad2ded08d7b736e4d</tree>
  <committer>
    <name>oneman</name>
    <email>oneman@blacktower.(none)</email>
  </committer>
</commit>
