Fixed shard duration as suggested by @srdgame
authorJeroen van der Heijden <jeroen@transceptor.technology>
Mon, 1 Feb 2021 09:29:52 +0000 (10:29 +0100)
committerJeroen van der Heijden <jeroen@transceptor.technology>
Mon, 1 Feb 2021 09:29:52 +0000 (10:29 +0100)
include/siri/db/series.inline.h
include/siri/db/shard.h
include/siri/version.h

index 5361cbf2dc0485f9c9bfa98f011e34e7ea739e2f..4adbf4d87bcc5f7a00d09c9f33540b105343a6a3 100644 (file)
@@ -1,7 +1,7 @@
 #include <siri/db/series.h>
 #include <siri/db/shard.h>
 
-static inline size_t siridb_series_duration(siridb_series_t * series)
+static inline uint64_t siridb_series_duration(siridb_series_t * series)
 {
     return series->idx_len ? series->idx->shard->duration : 0;
 }
index 759af9227b553ac0035621e6f2c61c5fddb1c31e..97e38dab2eb0fdcfa19596b5b1a9be12fe01e103 100644 (file)
@@ -128,7 +128,7 @@ struct siridb_shard_s
     uint64_t id;
     size_t len;         /* size of the shard which is used */
     size_t size;        /* size of shard on disk */
-    size_t duration;    /* based on the interval of series */
+    uint64_t duration;  /* based on the interval of series */
     siri_fp_t * fp;
     char * fn;
     siridb_shard_t * replacing;
index 67db2a9ed9a1fc0f66c9ef4a7e304643d3d555e5..0dd82d04b2294f2c9c4cdf1d640f138b8872ad78 100644 (file)
@@ -15,7 +15,7 @@
  * Note that debian alpha packages should use versions like this:
  *   2.0.34-0alpha0
  */
-#define SIRIDB_VERSION_PRE_RELEASE "-alpha-3"
+#define SIRIDB_VERSION_PRE_RELEASE "-alpha-4"
 
 #ifndef NDEBUG
 #define SIRIDB_VERSION_BUILD_RELEASE "+debug"