Browse code

dialog: fix missing else

Bastian Triller authored on 13/12/2021 12:11:26
Showing 1 changed files
... ...
@@ -2330,9 +2330,9 @@ static inline void internal_rpc_print_dlg(rpc_t *rpc, void *c, dlg_cell_t *dlg,
2330 2330
 	if (rpc->add(c, "{", &h) < 0) goto error;
2331 2331
 
2332 2332
 	tnow = time(NULL);
2333
-	if(dlg->end_ts) {
2333
+	if (dlg->end_ts) {
2334 2334
 		tdur = (int)(dlg->end_ts - dlg->start_ts);
2335
-	} if(dlg->start_ts) {
2335
+	} else if (dlg->start_ts) {
2336 2336
 		tdur = (int)(tnow - dlg->start_ts);
2337 2337
 	} else {
2338 2338
 		tdur = 0;