Группа :: Система/Основа
Пакет: mcelog
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: mcelog-0.8pre-alt-fmt_tsc.patch
Скачать
Скачать
--- mcelog-0.8pre/tsc.c.orig 2006-12-31 16:32:15 +0000
+++ mcelog-0.8pre/tsc.c 2007-06-28 21:27:22 +0000
@@ -63,7 +63,7 @@ static int constant_tsc(int cpu, double
static int fmt_tsc(char *buf, __u64 tsc, double mhz)
{
- unsigned days, hours, mins, secs;
+ unsigned days, hours, mins;
__u64 v;
if (mhz == 0.0)
return -1;
@@ -72,7 +72,7 @@ static int fmt_tsc(char *buf, __u64 tsc,
SCALE(hours, 3600);
SCALE(mins, 60);
SCALE(days, 1);
- sprintf(buf, "%u days %u:%u:%u", days, hours, mins, secs);
+ sprintf(buf, "%u days %u:%u", days, hours, mins);
return 0;
}