Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc988a9c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "storaged: Avoid divide-by-zero in performance measurement" into tm-dev am: 190e2bc6

parents 2fe3b619 190e2bc6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ void storaged_t::flush_proto_data(userid_t user_id,
            first_write = false;
        }

        if (benchmark_size) {
        if (benchmark_size && benchmark_time_ns) {
            int perf = benchmark_size * 1000000LLU / benchmark_time_ns;
            storage_info->update_perf_history(perf, system_clock::now());
        }