From 1ef694894b813f69959072fc0acbab285adcbd70 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 14 Sep 2018 10:57:20 +0200 Subject: sort case --- URPM.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'URPM.xs') diff --git a/URPM.xs b/URPM.xs index c40dea9..2d52299 100644 --- a/URPM.xs +++ b/URPM.xs @@ -1281,15 +1281,15 @@ static void *rpmRunTransactions_callback(__attribute__((unused)) const void *h, if (callback != NULL) { switch (what) { + case RPMCALLBACK_INST_START: case RPMCALLBACK_TRANS_START: case RPMCALLBACK_UNINST_START: - case RPMCALLBACK_INST_START: callback_subtype = "start"; gettimeofday(&tprev, NULL); break; + case RPMCALLBACK_INST_PROGRESS: case RPMCALLBACK_TRANS_PROGRESS: case RPMCALLBACK_UNINST_PROGRESS: - case RPMCALLBACK_INST_PROGRESS: callback_subtype = "progress"; gettimeofday(&tcurr, NULL); delta = 1000000 * (tcurr.tv_sec - tprev.tv_sec) + (tcurr.tv_usec - tprev.tv_usec); -- cgit v1.2.1