diff options
author | trz <trz> | 2005-10-19 14:32:25 +0000 |
---|---|---|
committer | trz <trz> | 2005-10-19 14:32:25 +0000 |
commit | 707cb4bfb6e6e918dba16021ca0ae29671660d68 (patch) | |
tree | 1318d16434563d7fe0b490a4530cc3c26da4bd8c /runtime/stpd/librelay.c | |
parent | 0e1e055939eb528f1d2ec28b47faf6dd12ede0fa (diff) | |
download | systemtap-steved-707cb4bfb6e6e918dba16021ca0ae29671660d68.tar.gz systemtap-steved-707cb4bfb6e6e918dba16021ca0ae29671660d68.tar.xz systemtap-steved-707cb4bfb6e6e918dba16021ca0ae29671660d68.zip |
switch to binary TIMESTAMP
Diffstat (limited to 'runtime/stpd/librelay.c')
-rw-r--r-- | runtime/stpd/librelay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index b884e91d..b173b5d5 100644 --- a/runtime/stpd/librelay.c +++ b/runtime/stpd/librelay.c @@ -506,8 +506,8 @@ int init_stp(const char *relay_filebase, int print_summary) } -/* length of timestamp in output field 0 - TODO: make binary, variable */ -#define TIMESTAMP_SIZE 11 +/* length of timestamp in output field 0 */ +#define TIMESTAMP_SIZE (sizeof(int)) /** * merge_output - merge per-cpu output @@ -530,7 +530,7 @@ static int merge_output(void) return -1; } if (fread (buf, TIMESTAMP_SIZE, 1, fp[i])) - num[i] = strtoul (buf, NULL, 10); + num[i] = *((int *)buf); else num[i] = 0; } @@ -567,7 +567,7 @@ static int merge_output(void) } if (fread (buf, TIMESTAMP_SIZE, 1, fp[j])) - num[j] = strtoul (buf, NULL, 10); + num[j] = *((int *)buf); else num[j] = 0; } while (min); |