Skip to content

Commit

Permalink
show vmi utilization data
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacov committed Oct 5, 2020
1 parent d9e4d60 commit 8120a1f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
import { ByteDataTypes } from '@console/shared/src/graph-helper/data-utils';
import { VMDashboardContext } from '../../vms/vm-dashboard-context';
import { findVMIPod } from '../../../selectors/pod/selectors';
import { isVMCreated } from '../../../selectors/vm';
import { getUtilizationQueries, getMultilineUtilizationQueries, VMQueries } from './queries';
import { getPrometheusQueryEndTimestamp } from '@console/internal/components/graphs/helpers';

Expand Down Expand Up @@ -52,7 +51,7 @@ export const VMUtilizationCard: React.FC = () => {
const vmName = getName(vmiLike);
const namespace = getNamespace(vmiLike);
const launcherPodName = getName(findVMIPod(vmi, pods));
const vmiIsRunning = isVMCreated(vm) && !!vmi;
const vmiIsRunning = !!vmi;

const queries = React.useMemo(
() =>
Expand Down

0 comments on commit 8120a1f

Please sign in to comment.