make : ajout cible show-time pour avoir les stats de chrony (service ntp)

nixos-19.09
Jean-Pierre PRUNARET 8 years ago
parent 4ab0e2ff47
commit b04e9502f0

@ -1,6 +1,9 @@
GSF=git submodule foreach GSF=git submodule foreach
TIME=time TIME=time
CHRONY_STATUS=chronyc tracking
CHRONY_STATS=chronyc sources -v
all: rebuild-switch all: rebuild-switch
date date
##--------- Commandes spécifiques pour NixOS ##--------- Commandes spécifiques pour NixOS
@ -39,6 +42,11 @@ show-diff-with-current:
show-roots: show-roots:
nix-store --gc --print-roots nix-store --gc --print-roots
show-time:
-@$(CHRONY_STATUS)
#CHRONY_STATUS='chronyc tracking' CHRONY_STATS='chronyc sources -v' ${CHRONY_STATS} && watch -d -n 20 "${CHRONY_STATUS} && echo "--" && ${CHRONY_STATS}"
-@watch -d -n 20 "$(CHRONY_STATUS) && echo "--" && $(CHRONY_STATS)"
store-repair: store-repair:
$(TIME) nix-store --verify --check-contents --repair $(TIME) nix-store --verify --check-contents --repair

Loading…
Cancel
Save