ソースを参照

Fix suffix of milliseconds formatter

Sam Jaffe 6 年 前
コミット
abc5f51860
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/format.cxx

+ 1 - 1
src/format.cxx

@@ -64,7 +64,7 @@ namespace logging {
         fmtstring.replace(pos, 1, "%%");
         pos += 2;
       }
-      fmtstring.replace(fmtstring.find("%%_ms"), 4, "%.03d");
+      fmtstring.replace(fmtstring.find("%%_ms"), 5, "%.03d");
       return [=](logpacket const & lp) {
         return fmt_time_with_milis(lp.time, fmtstring);
       };