Skip to content

Commit

Permalink
analyze: actually select longest activated-time of services
Browse files Browse the repository at this point in the history
Discovered by LGTM.

(cherry picked from commit e681315)
  • Loading branch information
yuwata authored and keszybz committed Oct 29, 2018
1 parent 0263ce2 commit 2d2c1b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/analyze/analyze.c
Original file line number Diff line number Diff line change
Expand Up @@ -890,11 +890,8 @@ static int list_dependencies_one(sd_bus *bus, const char *name, unsigned int lev
STRV_FOREACH(c, deps) {
times = hashmap_get(unit_times_hashmap, *c);
if (times_in_range(times, boot) &&
(times->activated >= service_longest
|| service_longest == 0)) {
times->activated >= service_longest)
service_longest = times->activated;
break;
}
}

if (service_longest == 0)
Expand Down

0 comments on commit 2d2c1b6

Please sign in to comment.