]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/common/test_time.cc
import ceph 14.2.5
[ceph.git] / ceph / src / test / common / test_time.cc
index 3ab2d8d8f562e380d363b0e0a9b33e627f33cef7..c517a61033bffc2db7bb35a09f32d22576280a85 100644 (file)
@@ -50,7 +50,7 @@ static constexpr uint32_t bns = 123456789;
 static constexpr uint32_t bus = 123456;
 static constexpr time_t btt = bs;
 static constexpr struct timespec bts = { bs, bns };
-static constexpr struct ceph_timespec bcts = { bs, bns };
+static struct ceph_timespec bcts = { init_le32(bs), init_le32(bns) };
 static constexpr struct timeval btv = { bs, bus };
 static constexpr double bd = bs + ((double)bns / 1000000000.);