From b04e9502f0c83086f2cf1d4f439847be3bebdbd3 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Fri, 5 Jan 2018 21:09:49 +0100 Subject: [PATCH] make : ajout cible show-time pour avoir les stats de chrony (service ntp) --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index abd7ba8..44d8fec 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ GSF=git submodule foreach TIME=time +CHRONY_STATUS=chronyc tracking +CHRONY_STATS=chronyc sources -v + all: rebuild-switch date ##--------- Commandes spécifiques pour NixOS @@ -39,6 +42,11 @@ show-diff-with-current: show-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: $(TIME) nix-store --verify --check-contents --repair