Skip to content

Commit

Permalink
Flere enheder.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Mar 21, 2024
1 parent 99fd435 commit d9184d9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion concieggs/compiled/06linksvineren.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,20 @@ void checklink(const char* link) {
} else {
unit = "timer";
}
} else if (diff < 60 * 60 * 24 * 365) {
} else if (diff < 60 * 60 * 24 * 12) {
unit_number = diff / 60 / 60 / 24;
if (unit_number == 1) {
unit = "dag";
} else {
unit = "dage";
}
} else if (diff < 60 * 60 * 24 * 365) {
unit_number = diff / 60 / 60 / 24 / 30;
if (unit_number == 1) {
unit = "måned";
} else {
unit = "måneder";
}
} else {
unit_number = diff / 60 / 60 / 24 / 365;
unit = "år";
Expand Down

0 comments on commit d9184d9

Please sign in to comment.