summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-10-13 16:55:54 +0200
committerLeah Neukirchen <leah@vuxu.org>2023-10-13 16:55:54 +0200
commit7f7cfbbead307c4d522af19bfdcfdd58edc98458 (patch)
tree9ccf2bb5c283c0650e75bea8c299d801f503a0ee
parentae9b6838c96a6194b30452fa6f4b9c0043b68ec2 (diff)
downloadmico-7f7cfbbead307c4d522af19bfdcfdd58edc98458.tar.gz
mico-7f7cfbbead307c4d522af19bfdcfdd58edc98458.tar.xz
mico-7f7cfbbead307c4d522af19bfdcfdd58edc98458.zip
scale to 5 digits for now
-rw-r--r--mico-dump.c2
-rw-r--r--mico-store.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/mico-dump.c b/mico-dump.c
index 8bf12e4..982c1b4 100644
--- a/mico-dump.c
+++ b/mico-dump.c
@@ -108,7 +108,7 @@ main()
 			t += td;
 			v += vd;
 
-			printf("%s %f %ld\n", name, v/10.0, t);
+			printf("%s %f %ld\n", name, v/10000.0, t);
 		}
 	}
 }
diff --git a/mico-store.c b/mico-store.c
index 38e4b7e..6fe025a 100644
--- a/mico-store.c
+++ b/mico-store.c
@@ -187,7 +187,7 @@ main()
 			}
 
 			put1(&ts, (t - pt) - (pt - ppt));
-			put1(&vs, (int32_t)((v - pv) * 10));
+			put1(&vs, (int32_t)((v - pv) * 10000));
 
 			ppt = pt;
 			pt = t;