]> sourceware.org Git - systemtap.git/commitdiff
2005-11-10 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Thu, 10 Nov 2005 18:33:54 +0000 (18:33 +0000)
committerhunt <hunt>
Thu, 10 Nov 2005 18:33:54 +0000 (18:33 +0000)
* map.c (_stp_cmp): Use _stp_div64().

runtime/ChangeLog
runtime/map.c

index 0c85f33a3750f39b1b11d53532f6bc3640859058..1b2718469345d409b22639c440038be91d72636a 100644 (file)
@@ -1,3 +1,7 @@
+2005-11-10  Martin Hunt  <hunt@redhat.com>
+
+       * map.c (_stp_cmp): Use _stp_div64().
+
 2005-11-09  Martin Hunt  <hunt@redhat.com>
 
        * map.h: Remove HSTAT_LOG and HSTAT_LINEAR.
index bbcd144a9f02ee9f881e8f93ec0a57f08f70a0b6..76f8b87b18f37f8ac6d7e4ee932f1804bd414a65 100644 (file)
@@ -431,8 +431,8 @@ static int _stp_cmp (struct list_head *a, struct list_head *b, int keynum, int d
                                b = sd2->max;
                                break;
                        case SORT_AVG:
-                               a = sd1->sum / sd1->count;
-                               b = sd2->sum / sd2->count;
+                               a = _stp_div64 (NULL, sd1->sum, sd1->count);
+                               b = _stp_div64 (NULL, sd2->sum, sd2->count);
                                break;
                        default:
                                /* should never happen */
This page took 0.027805 seconds and 5 git commands to generate.