ref: 21c348fd5d20f77b018d0b812361a64fc139dc18
parent: a3833b4ee66df2d02419ce636f1f83553691bc15
author: menno <menno>
date: Fri Mar 2 03:48:24 EST 2001
unix fix
--- a/frontend/main.c
+++ b/frontend/main.c
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * $Id: main.c,v 1.7 2001/03/01 08:44:17 menno Exp $
+ * $Id: main.c,v 1.8 2001/03/02 08:48:24 menno Exp $
*/
#ifdef _WIN32
@@ -204,11 +204,9 @@
printf("Encoding %s took:\t%d:%.2d\t\n", argv[argc-2], nMins, nSecs);
#else
#ifdef __unix__
- /*usage=malloc(sizeof(struct rusage*));*/
getrusage(RUSAGE_SELF,usage);
if (usage) {
totalSecs=usage->ru_utime.tv_sec;
- free(usage);
mins = totalSecs/60;
printf("Encoding %s took: %i min, %.2f sec. of cpu-time\n", argv[argc-2], mins, totalSecs - (60 * mins));
}