diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2018-09-14 10:57:20 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2018-09-14 10:57:20 +0200 |
commit | 1ef694894b813f69959072fc0acbab285adcbd70 (patch) | |
tree | 546913553b8ec357968e7ebd636a286035f6f33c | |
parent | 1b943f3c729c8b9d669329f853672c654e602d60 (diff) | |
download | perl-URPM-1ef694894b813f69959072fc0acbab285adcbd70.tar perl-URPM-1ef694894b813f69959072fc0acbab285adcbd70.tar.gz perl-URPM-1ef694894b813f69959072fc0acbab285adcbd70.tar.bz2 perl-URPM-1ef694894b813f69959072fc0acbab285adcbd70.tar.xz perl-URPM-1ef694894b813f69959072fc0acbab285adcbd70.zip |
sort case
-rw-r--r-- | URPM.xs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |