]>
Commit | Line | Data |
---|---|---|
f0f0442b AM |
1 | diff -urpN busybox-1.18.1/libbb/procps.c busybox-1.18.1-warning/libbb/procps.c |
2 | --- busybox-1.18.1/libbb/procps.c 2010-12-21 05:29:45.000000000 +0100 | |
3 | +++ busybox-1.18.1-warning/libbb/procps.c 2011-01-07 13:41:22.000000000 +0100 | |
4 | @@ -154,6 +154,7 @@ static unsigned long fast_strtoul_10(cha | |
5 | return n; | |
6 | } | |
7 | ||
8 | +# if ENABLE_FEATURE_FAST_TOP | |
9 | static long fast_strtol_10(char **endptr) | |
10 | { | |
11 | if (**endptr != '-') | |
12 | @@ -162,6 +163,7 @@ static long fast_strtol_10(char **endptr | |
13 | (*endptr)++; | |
14 | return - (long)fast_strtoul_10(endptr); | |
15 | } | |
16 | +# endif | |
17 | ||
18 | static char *skip_fields(char *str, int count) | |
19 | { | |
20 | @@ -448,7 +450,7 @@ procps_status_t* FAST_FUNC procps_scan(p | |
21 | //FIXME: is it safe to assume this field exists? | |
22 | sp->last_seen_on_cpu = fast_strtoul_10(&cp); | |
23 | # endif | |
24 | -#endif /* end of !ENABLE_FEATURE_TOP_SMP_PROCESS */ | |
25 | +#endif /* FEATURE_FAST_TOP */ | |
26 | ||
27 | #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS | |
28 | sp->niceness = tasknice; |