-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#5 New metric: age of class in hours #380
Conversation
used authors.sh as an example
metrics/aocih.sh
Outdated
if [[ -z "$creation_timestamp" ]]; then | ||
age_in_hours=0 | ||
else | ||
current_timestamp=$(date +%s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lueFlake "age of class in hours" is the number of hours since the date of birth of the repository. It has nothing to do with the current time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yegor256 you mean difference between date of birth and date of class creation? i think i can redo it then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lueFlake yes, like this:
A = C - D
Here, A is the age of file, C is the time when the file was first time added to the repo, and D is the time when the first file was added to the repo.
@yegor256 seems like its done, idk whats wrong with the macOS build again |
@lueFlake thanks! |
adding metric from #5