diff options
author | hunt <hunt> | 2005-11-10 18:33:54 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-11-10 18:33:54 +0000 |
commit | 6099a10f01119ff54c1d23ca8d50ce03bd430958 (patch) | |
tree | 21a713e7cd9b663c57ee37aef5bc45ddeb5c0e72 /runtime/map.c | |
parent | fba06bdb8f5c91d1d170ca11afb4936e7608d29f (diff) | |
download | systemtap-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().
Diffstat (limited to 'runtime/map.c')
-rw-r--r-- | runtime/map.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |