학습데이터 목록 파일 단위 MB 나오게 하기 #85

Merged
gina merged 1 commits from feat/training_260202 into develop 2026-02-13 09:48:08 +09:00

View File

@@ -77,9 +77,16 @@ public class DatasetDto {
}
public String getTotalSize(Long totalSize) {
if (totalSize == null) return "0G";
if (totalSize == null || totalSize <= 0) return "0M";
double giga = totalSize / (1024.0 * 1024 * 1024);
return String.format("%.2fG", giga);
if (giga >= 1) {
return String.format("%.2fG", giga);
} else {
double mega = totalSize / (1024.0 * 1024);
return String.format("%.2fM", mega);
}
}
public String getStatus(String status) {