Skip to content

Commit

Permalink
modify GiB to GB (labring#3736)
Browse files Browse the repository at this point in the history
  • Loading branch information
xudaotutou committed Aug 22, 2023
1 parent 50e908e commit 9ea8803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions frontend/providers/costcenter/src/constants/payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export const START_TIME = new Date(2023, 0, 1);
export const END_TIME = endOfDay(new Date());
export const valuationMap = new Map([
['cpu', { unit: 'Core', scale: 1000, bg: '#33BABB', idx: 0 }],
['memory', { unit: 'GiB', scale: 1024, bg: '#36ADEF', idx: 1 }],
['storage', { unit: 'GiB', scale: 1024, bg: '#8172D8', idx: 2 }],
['memory', { unit: 'GB', scale: 1024, bg: '#36ADEF', idx: 1 }],
['storage', { unit: 'GB', scale: 1024, bg: '#8172D8', idx: 2 }],
['gpu', { unit: 'GPU', scale: 1000, bg: '#89CD11', idx: 3 }]
// ['network', { unit: 'M', scale: 1, bg: '#89CD11', idx: 4 }]
]);
12 changes: 1 addition & 11 deletions frontend/providers/costcenter/src/pages/valuation/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import {
Box,
Flex,
Heading,
Text,
Img,
Stack,
PopoverArrow,
position,
Tooltip
} from '@chakra-ui/react';
import { Box, Flex, Heading, Text, Img, Stack } from '@chakra-ui/react';
import letter_icon from '@/assert/format_letter_spacing_standard_black.svg';
import { QueryClient, dehydrate, useQuery } from '@tanstack/react-query';
import request from '@/service/request';
Expand Down

0 comments on commit 9ea8803

Please sign in to comment.