Skip to content
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

Merged
merged 14 commits into from
Oct 15, 2024
Merged

Conversation

lueFlake
Copy link
Contributor

@lueFlake lueFlake commented Oct 9, 2024

adding metric from #5

used authors.sh as an example
metrics/aocih.sh Outdated
if [[ -z "$creation_timestamp" ]]; then
age_in_hours=0
else
current_timestamp=$(date +%s)
Copy link
Owner

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.

Copy link
Contributor Author

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

Copy link
Owner

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.

@lueFlake
Copy link
Contributor Author

lueFlake commented Oct 14, 2024

@yegor256 seems like its done, idk whats wrong with the macOS build again

@yegor256 yegor256 merged commit eacf527 into yegor256:master Oct 15, 2024
11 of 12 checks passed
@yegor256
Copy link
Owner

@lueFlake thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants