A few feature requests for arbtt-stats

Nikola M nk.ogz at outlook.com
Tue Jan 19 13:20:39 CET 2016


>> I'm currently using arbtt 0.8.1-1 (Debian Jessie).
>> I'm not sure if newer versions of arbtt-stats already have these
>> features.
> 
> Likely not:
> http://arbtt.nomeata.de/doc/users_guide/release-notes.html

I am aware of the release notes, but the following link shows the Tag column in arbtt-stats output left-aligned:
https://github.com/rejuvyesh/arbtt-graph

That's what confused me.

>> (1)
>> I suggest an additional row with "LastRecord - FirstRecord".
>>
>> General
>> Information
>>
>>
>> ===================
>>                        FirstRecord | 2015-12-31 19:24:48.432324 UTC
>>                         LastRecord | 2016-01-16 12:23:22.325992 UTC
>>           LastRecord - FirstRecord |                   15d16h58m34s
>
> Is that very useful?
> 
> In a way it is already there; take the Total time recorded and divide
> by „Fraction of total time recorded“

Well, sometimes I wonder how long I have been running arbtt-capture, but arbtt-stats only shows my total computer uptime (Total time recorded).

Since the                        FirstRecord &                         LastRecord values are already displayed, I think it makes sense to show their difference for completeness.
I know it can be calculated from the already available values, but it's easier to have the program do it :)

If it's not very interesting/useful to other people, no problem.
I can always process the output with some other script when I'm interested in the value.

Request NOT ADDED to bitbucket.org for now.



>> (2a)
>>
>> Currently the Tag column is right-aligned.
>>
>> Statistics for category "day"
>> =============================
>> __________Tag_|______Time_|_Percentage_
>> day:Wednesday | 22h13m00s |      22.16
>>  day:Saturday | 19h10m00s |      19.12
>>    day:Monday | 16h02m00s |      15.99
>>    day:Sunday | 12h07m00s |      12.08
>>  day:Thursday | 11h40m00s |      11.64
>>   day:Tuesday | 10h28m00s |      10.44
>>    day:Friday |  8h36m00s |       8.58
>>
>>
>> Is it possible to add a command line switch to make the Tag column
>> left-aligned.
> 
> Nah; I think it should just be left-aligned, without a switch. (Nobody
> needs it right aligned...)
> 
> Would you feel like filing a bug at
> https://bitbucket.org/nomeata/arbtt/issues?status=new&status=open
> for this?

Added to:
https://bitbucket.org/nomeata/arbtt/issues/34/add-left-aligned-option-for-tag-column-in


>> (2b)
>>
>> If you decide to add the left-aligned option, maybe it would be
>> useful to add dots every N lines to help reading long lists.
>> For example, if N=3 the output would be:
>>
>> Statistics for category "day"
>> =============================
>> __________Tag_|______Time_|_Percentage_
>> day:Wednesday | 22h13m00s |      22.16
>> day:Saturday  | 19h10m00s |      19.12
>> day:Monday ...|.16h02m00s |......15.99
>> day:Sunday    | 12h07m00s |      12.08
>> day:Thursday  | 11h40m00s |      11.64
>> day:Tuesday ..|.10h28m00s |......10.44
>> day:Friday    |  8h36m00s |       8.58
>
> I’m not sure about this. Does it really help? What do others on this
> list think?

Maybe it isn't obvious from the example I mentioned.
Some tags can have names much longer than other tags.
The dots that appear every N lines help readability.
Just like the Thunar file manager alternates background colors every line in "Detailed List" mode to help readability.

_______________________________________Tag_|_________Time_|_Percentage_
program:Thunar                             |    12h18m00s |      10.66
program:gedit                              |    11h47m00s |      10.22
program:Xfce4 Terminal Emulator ...........|.....7h43m00s |.......6.69
program:Eclipse                            |     3h11m00s |       2.76
program:Kompare                            |     2h59m00s |       2.59
program:Evince Document Viewer ............|.......51m00s |.......0.74
program:Mousepad                           |       46m00s |       0.66
program:Konsole                            |       42m00s |       0.61
program:Arora .............................|.......35m00s |.......0.51
program:KSysGuard System Monitor           |       21m00s |       0.30
program:gtkhash                            |       18m00s |       0.26
program:Wicd Network Manager ..............|.......17m00s |.......0.25
program:Synaptic Package Manager           |       14m00s |       0.20
...

Request NOT ADDED to bitbucket.org for now.


>> (3)
>> Currently the output is sorted by Time/Percentage.
>> Is it possible to sort results by Tag name?
>
> Currently not. You could write to a CSV file and then open it in your
> favorite spreadsheet program, but a --sort=Tag flag seems to be
> reasonable. Again, would you mind filing a bug report?

Added to:
https://bitbucket.org/nomeata/arbtt/issues/35/add-option-to-sort-by-tag-name-in-arbtt

> Also, patches welcome, if you are not afraid of Haskell :-)

Currently Haskell looks like Klingon to me :)
Learning a functional programming language is on my TODO list.

Best regards,
Nikola
 		 	   		  



More information about the arbtt mailing list