-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored
glances.globals.pretty_date()
* part of #2801 * instead of many, a single return point is used * refactoring possible because `OrderedDict` preserve insertion order [1] * though `dict` preverse order since 3.6, used `OrderedDict` for safety [2] * introduced as helpers: 1. `get_diff_time` 2. `get_msg_for_true_cond` 3. `get_conds_for_sec_diff_msg` 4. `get_conds_for_day_diff_msg`. [1] https://docs.python.org/3/library/collections.html#collections.OrderedDict [2] https://peps.python.org/pep-0520/ Signed-off-by: Ariel Otilibili <otilibil@eurecom.fr>
- Loading branch information
Ariel Otilibili
committed
Oct 8, 2024
1 parent
adfb642
commit f6279ba
Showing
1 changed file
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters