+script to see active working hours
This commit is contained in:
parent
afd86aa7e9
commit
06d94dd384
1
active_hours.sh
Executable file
1
active_hours.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
git log --author="Morgan" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }'
|
Loading…
Reference in New Issue
Block a user