Hello community, here is the log from the commit of package procinfo checked in at Fri Aug 3 02:19:58 CEST 2007. -------- --- procinfo/procinfo.changes 2007-07-30 17:11:18.000000000 +0200 +++ /mounts/work_src_done/STABLE/procinfo/procinfo.changes 2007-07-31 11:57:09.722833000 +0200 @@ -1,0 +2,5 @@ +Tue Jul 31 11:56:14 CEST 2007 - werner@suse.de + +- Modified version of last patch: include fractions of seconds + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ procinfo.spec ++++++ --- /var/tmp/diff_new_pack.gJB408/_old 2007-08-03 02:19:21.000000000 +0200 +++ /var/tmp/diff_new_pack.gJB408/_new 2007-08-03 02:19:21.000000000 +0200 @@ -17,7 +17,7 @@ Group: System/Monitoring Autoreqprov: on Version: 18 -Release: 116 +Release: 118 Summary: Display System Status Gathered from /proc Provides: ps:/usr/bin/lsdev Source: ftp://ftp.cistron.nl/pub/people/svm/%{name}-%{version}.tar.bz2 @@ -81,6 +81,8 @@ %{_mandir}/man8/socklist.8* %changelog +* Tue Jul 31 2007 - werner@suse.de +- Modified version of last patch: include fractions of seconds * Mon Jul 30 2007 - werner@suse.de - During time delay calculation cast result not parts to float and avoid sprint overflows (bug #295501) ++++++ procinfo-float.dif ++++++ --- /var/tmp/diff_new_pack.gJB408/_old 2007-08-03 02:19:21.000000000 +0200 +++ /var/tmp/diff_new_pack.gJB408/_new 2007-08-03 02:19:21.000000000 +0200 @@ -9,14 +9,18 @@ printf ("Mem: %12ld%12ld%12ld%12ld%12ld", DIFF (m_to), DIFF (m_us), DIFF (m_fr), DIFF (m_sh), DIFF (m_bu)); if (have_m_c) -@@ -1060,8 +1060,8 @@ main (int ac, char **av) +@@ -1059,9 +1206,11 @@ + then = now; gettimeofday (&now, 0); - if (per_sec) +- if (per_sec) - rate = (float) now.tv_sec + (float) now.tv_usec / 1.0e6 - - (float) then.tv_sec - (float) then.tv_usec / 1.0e6; -+ rate = (float)((now.tv_sec + (now.tv_usec /1000000)) - -+ (then.tv_sec + (then.tv_usec/1000000))); ++ if (per_sec) { ++ struct timeval sub; ++ timersub(&now, &then, &sub); ++ rate = (float)sub.tv_sec+(float)sub.tv_usec/1.0e6; ++ } } else { putchar ('\n'); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org