Run pre-commit hooks over existing codebase

Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
shamoon 2023-10-17 23:26:55 -07:00
parent fa50bbad9c
commit 19c25713c4
387 changed files with 4785 additions and 4109 deletions

View file

@ -29,9 +29,9 @@ export default function Component({ service }) {
);
}
const datastoreUsage = datastoreData.data[0].used / datastoreData.data[0].total * 100;
const datastoreUsage = (datastoreData.data[0].used / datastoreData.data[0].total) * 100;
const cpuUsage = hostData.data.cpu * 100;
const memoryUsage = hostData.data.memory.used / hostData.data.memory.total * 100;
const memoryUsage = (hostData.data.memory.used / hostData.data.memory.total) * 100;
const failedTasks = tasksData.total >= 100 ? "99+" : tasksData.total;
return (

View file

@ -1,6 +1,6 @@
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const since = Date.now() - (24 * 60 * 60 * 1000);
const since = Date.now() - 24 * 60 * 60 * 1000;
const widget = {
api: "{url}/api2/json/{endpoint}",