user-avatar
Today is Saturday
February 11, 2012

November 13, 2008

Yet another activity graph : how often do you emerge ?

by Thomas Capricelli — Categories: Admin, Gentoo — Tags: , Leave a comment

Really, I seem to be fond of activity graphs those days. I have reused part of this previous code, but this time I parse the emerge log file to display the activity of your successful emerges. Think of it as a graphical view of ‘genlop -l’.

Those examples are the emerge activity of my two main computers.

The current code does the bare minimum, and  I need to add at least command line options for

  • logfile to use (currently/default : /var/log/emerge.log)
  • filename to create (currently/default : activity.png)
  • width/height of the image (currently/default : 800×600)

The usage is straightforward:

orzel@berlioz EmergeActivity% ./EmergeActivity.py
There are 9896 emerge completed successfully
Created the file 'activity.png'
orzel@berlioz EmergeActivity% xv activity.png &

You can grab the source (browse, tarballs, mercurial clone, even RSS) from :

http://sources.freehackers.org/EmergeActivity/

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

2,508 Spam Comments Blocked so far by Spam Free Wordpress

CAPTCHA image
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2012 Thomas Capricelli All rights reserved - Wallow theme v0.46.5 by ([][]) TwoBeers - Powered by WordPress - Have fun!