uh
This commit is contained in:
3 files changed
+47
-7
No files matched your search
Executable → Regular
+3
-3
@@ -8,7 +8,6 @@ from pathlib import Path
|
||||
from datetime import datetime
|
||||
import re
|
||||
|
||||
|
||||
PATTERN = re.compile(
|
||||
# r"^rollout-"
|
||||
r"(?P<date>\d{4}-\d{2}-\d{2})"
|
||||
@@ -49,6 +48,7 @@ def format_size(size: int) -> str:
|
||||
return f"{size} B"
|
||||
return f"{value:.1f} {unit}"
|
||||
value /= 1024
|
||||
raise ValueError() # unreachable
|
||||
|
||||
|
||||
def format_session_line(file: Path) -> str | None:
|
||||
@@ -62,8 +62,8 @@ def format_session_line(file: Path) -> str | None:
|
||||
|
||||
return (
|
||||
f'{parsed["started"]:%Y-%m-%d %H:%M:%S} | '
|
||||
f'updated {modified:%Y-%m-%d %H:%M:%S} | '
|
||||
f'{size:>8} | '
|
||||
f"updated {modified:%Y-%m-%d %H:%M:%S} | "
|
||||
f"{size:>8} | "
|
||||
f'codex resume {parsed["uuid"]}'
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user