diff options
author | Dave Brolley <brolley@redhat.com> | 2009-09-03 19:53:24 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-09-03 19:53:24 -0400 |
commit | a5d268f35032292b8f85cc75a316930ed0b95aab (patch) | |
tree | dd78d073ab80624478e77eebab3c5e9767524faa /tapset-timers.cxx | |
parent | 8402bcf68e5321b3459cbbbd27d5111bb184922e (diff) | |
parent | df56da84549816b15a1f7aea3c9f71de2b2001ad (diff) | |
download | systemtap-steved-a5d268f35032292b8f85cc75a316930ed0b95aab.tar.gz systemtap-steved-a5d268f35032292b8f85cc75a316930ed0b95aab.tar.xz systemtap-steved-a5d268f35032292b8f85cc75a316930ed0b95aab.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset-timers.cxx')
-rw-r--r-- | tapset-timers.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tapset-timers.cxx b/tapset-timers.cxx index 565a54e8..16dcefcb 100644 --- a/tapset-timers.cxx +++ b/tapset-timers.cxx @@ -193,10 +193,10 @@ struct hrtimer_derived_probe: public derived_probe { if ((i < min_ns_interval) || (i > max_ns_interval)) throw semantic_error(string("interval value out of range (") - + lex_cast<string>(scale < min_ns_interval + + lex_cast(scale < min_ns_interval ? min_ns_interval/scale : 1) + "," - + lex_cast<string>(max_ns_interval/scale) + ")"); + + lex_cast(max_ns_interval/scale) + ")"); // randomize = 0 means no randomization if ((r < 0) || (r > i)) |