Merge branch 'master' into newlib
Conflicts: pgrep.c proc/sysinfo.c ps/output.c skill.c top/top.c top/top.h w.c
This commit is contained in:
3
free.c
3
free.c
@@ -150,7 +150,7 @@ static const char *scale_size(unsigned long size, int flags, struct commandline_
|
||||
|
||||
/* human readable output */
|
||||
up = nextup;
|
||||
for (i = 1; up[0] != '0'; i++, up++) {
|
||||
for (i = 1; up[0] != 0; i++, up++) {
|
||||
switch (i) {
|
||||
case 1:
|
||||
if (4 >= snprintf(buf, sizeof(buf), "%ld%c", (long)size * 1024, *up))
|
||||
@@ -326,6 +326,7 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
case 's':
|
||||
flags |= FREE_REPEAT;
|
||||
errno = 0;
|
||||
args.repeat_interval = (1000000 * strtof(optarg, &endptr));
|
||||
if (errno || optarg == endptr || (endptr && *endptr))
|
||||
xerrx(EXIT_FAILURE, _("seconds argument `%s' failed"), optarg);
|
||||
|
Reference in New Issue
Block a user