From: Rafael Ávila de Espíndola Date: Tue, 29 Dec 2009 23:45:10 +0000 (+0000) Subject: 2009-12-29 Rafael Espindola X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e1b9a8a685612a610e7b54e7699377d964f3153;p=binutils-gdb.git 2009-12-29 Rafael Espindola * main.cc (main): Fix the sys time reporting. * workqueue.cc (Workqueue::find_and_run_task): Fix the sys time reporting. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index f2ef7114695..0af6d8f24f7 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2009-12-29 Rafael Espindola + + * main.cc (main): Fix the sys time reporting. + * workqueue.cc (Workqueue::find_and_run_task): Fix the sys time reporting. + 2009-12-29 Sriraman Tallam * options.cc (General_options::parse_version): Allow -v to exit diff --git a/gold/main.cc b/gold/main.cc index c9d0d7966c4..5d6cbd5a0f5 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -254,7 +254,7 @@ main(int argc, char** argv) "(user: %ld.%06ld sys: %ld.%06ld wall: %ld.%06ld)\n"), program_name, elapsed.user / 1000, (elapsed.user % 1000) * 1000, - elapsed.sys / 1000, (elapsed.user % 1000) * 1000, + elapsed.sys / 1000, (elapsed.sys % 1000) * 1000, elapsed.wall / 1000, (elapsed.wall % 1000) * 1000); #ifdef HAVE_MALLINFO diff --git a/gold/workqueue.cc b/gold/workqueue.cc index c713dca1dc2..6449bbad846 100644 --- a/gold/workqueue.cc +++ b/gold/workqueue.cc @@ -327,7 +327,7 @@ Workqueue::find_and_run_task(int thread_number) "(user: %ld.%06ld sys: %ld.%06ld wall: %ld.%06ld)", thread_number, t->name().c_str(), elapsed.user / 1000, (elapsed.user % 1000) * 1000, - elapsed.sys / 1000, (elapsed.user % 1000) * 1000, + elapsed.sys / 1000, (elapsed.sys % 1000) * 1000, elapsed.wall / 1000, (elapsed.wall % 1000) * 1000); }