Compactness Criterion for Local Fields