summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-10 18:33:54 +0000
committerhunt <hunt>2005-11-10 18:33:54 +0000
commit6099a10f01119ff54c1d23ca8d50ce03bd430958 (patch)
tree21a713e7cd9b663c57ee37aef5bc45ddeb5c0e72
parentfba06bdb8f5c91d1d170ca11afb4936e7608d29f (diff)
downloadsystemtap-steved-6099a10f01119ff54c1d23ca8d50ce03bd430958.tar.gz
systemtap-steved-6099a10f01119ff54c1d23ca8d50ce03bd430958.tar.xz
systemtap-steved-6099a10f01119ff54c1d23ca8d50ce03bd430958.zip
2005-11-10 Martin Hunt <hunt@redhat.com>
* map.c (_stp_cmp): Use _stp_div64().
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/map.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index 0c85f33a..1b271846 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -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.
diff --git a/runtime/map.c b/runtime/map.c
index bbcd144a..76f8b87b 100644
--- a/runtime/map.c
+++ b/runtime/map.c
@@ -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 */