2
#include "common/DecayCounter.h"
15
int get(double hl, int now) {
21
while (!hits.empty() &&
29
int main(int argc, char **argv)
32
double hl = atof(argv[1]);
33
cerr << "halflife " << hl << endl;
38
utime_t now = ceph_clock_now(g_ceph_context);
40
for (int ms=0; ms < 300*1000; ms++) {
41
if (ms % 30000 == 0) {
42
target = 1 + (rand() % 10) * 10;
43
if (ms > 200000) target = 0;
47
(rand() % (1000/target) == 0)) {
52
if (ms % 500 == 0) dc.get(now);
58
<< rc.get(hl*1000, ms) << "\t"
61
// << dc.delta << "\t"
62
<< o.get_last_vel() << "\t"
63
<< o.get_last() + o.get_last_vel() << "\t"