mirror of
https://github.com/ente-io/ente.git
synced 2025-08-09 07:48:52 +00:00
Showing usage data in GB in the fetch table
This commit is contained in:
parent
f11cc82e44
commit
65c72f6cf5
@ -103,6 +103,8 @@ export const App: React.FC = () => {
|
|||||||
displayValue = new Date(value / 1000).toLocaleString();
|
displayValue = new Date(value / 1000).toLocaleString();
|
||||||
} else if (key === "storage" && typeof value === "number") {
|
} else if (key === "storage" && typeof value === "number") {
|
||||||
displayValue = `${(value / 1024 ** 3).toFixed(2)} GB`;
|
displayValue = `${(value / 1024 ** 3).toFixed(2)} GB`;
|
||||||
|
} else if (key === "usage" && typeof value === "number") {
|
||||||
|
displayValue = `${(value / 1024 ** 3).toFixed(2)} GB`;
|
||||||
} else if (typeof value === "string") {
|
} else if (typeof value === "string") {
|
||||||
try {
|
try {
|
||||||
const parsedValue = JSON.parse(
|
const parsedValue = JSON.parse(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user