How to read such file and sumarize the data?

MRAB python at mrabarnett.plus.com
Wed Nov 17 18:37:23 EST 2010


On 17/11/2010 22:49, Tim Harig wrote:
> On 2010-11-17, MRAB<python at mrabarnett.plus.com>  wrote:
>> When a user starts, save the info in the first dict, and when a user
>> finishes, calculate the elapsed time and add it to the total for that
>> user.
>
> Perhaps you know more about the structure of this data.  It seems to me
> that a user might have more then a single job(?) running at once.  I
> therefore made the assumption that each start must be matched to its
> coorisponding stop.

I did make certain assumptions. It's up to the OP to adapt it to the
actual problem accordingly. :-)



More information about the Python-list mailing list