parent
02ddc548f5
commit
292bc4e4e0
@ -107,9 +107,10 @@ fn execute(
|
|||||||
const db = file.db;
|
const db = file.db;
|
||||||
|
|
||||||
var file_size_scratch: [16]u8 = undefined;
|
var file_size_scratch: [16]u8 = undefined;
|
||||||
const buf = fmt.bufPrint(file_size_scratch[0..], "{:.2}", .{
|
const buf = fmt.bufPrint(file_size_scratch[0..], "{d}", .{file_size_bytes}) catch unreachable;
|
||||||
fmt.fmtIntSizeBin(@intCast(u64, file_size_bytes)),
|
//const buf = fmt.bufPrint(file_size_scratch[0..], "{:.2}", .{
|
||||||
}) catch unreachable;
|
// fmt.fmtIntSizeBin(@intCast(u64, file_size_bytes)),
|
||||||
|
//}) catch unreachable;
|
||||||
|
|
||||||
const info = Info{
|
const info = Info{
|
||||||
.fname = db_file,
|
.fname = db_file,
|
||||||
@ -147,9 +148,12 @@ fn execute(
|
|||||||
|
|
||||||
inline for (meta.fields(DB.DBNumbers)) |field| {
|
inline for (meta.fields(DB.DBNumbers)) |field| {
|
||||||
const length = @field(lengths, field.name);
|
const length = @field(lengths, field.name);
|
||||||
const size = fmt.bufPrint(file_size_scratch[0..], "{:.0}", .{
|
const size = fmt.bufPrint(file_size_scratch[0..], "{d}", .{
|
||||||
fmt.fmtIntSizeBin(@intCast(u64, length << section_length_bits)),
|
length << section_length_bits,
|
||||||
}) catch unreachable;
|
}) catch unreachable;
|
||||||
|
//const size = fmt.bufPrint(file_size_scratch[0..], "{:.0}", .{
|
||||||
|
// fmt.fmtIntSizeBin(@intCast(u64, length << section_length_bits)),
|
||||||
|
//}) catch unreachable;
|
||||||
|
|
||||||
const start = @field(offsets, field.name);
|
const start = @field(offsets, field.name);
|
||||||
const end = start + @field(lengths, field.name);
|
const end = start + @field(lengths, field.name);
|
||||||
|
Loading…
Reference in New Issue
Block a user