Commit a6e8fccb authored by Eric Seidel's avatar Eric Seidel

Correct display error for `flutter analyze` timing

Fixes #1213.
parent d444ae7d
...@@ -12,7 +12,7 @@ import 'package:path/path.dart' as path; ...@@ -12,7 +12,7 @@ import 'package:path/path.dart' as path;
import '../artifacts.dart'; import '../artifacts.dart';
import '../base/logging.dart'; import '../base/logging.dart';
import '../base/process.dart'; import '../base/process.dart';
import '../build_configuration.dart'; import '../build_configuration.dart';.
import '../runner/flutter_command.dart'; import '../runner/flutter_command.dart';
class AnalyzeCommand extends FlutterCommand { class AnalyzeCommand extends FlutterCommand {
...@@ -324,7 +324,7 @@ class AnalyzeCommand extends FlutterCommand { ...@@ -324,7 +324,7 @@ class AnalyzeCommand extends FlutterCommand {
} }
} }
stopwatch.stop(); stopwatch.stop();
String elapsed = (stopwatch.elapsedMilliseconds / 100.0).toStringAsFixed(1); String elapsed = (stopwatch.elapsedMilliseconds / 1000.0).toStringAsFixed(1);
if (exitCode < 0 || exitCode > 3) // 0 = nothing, 1 = hints, 2 = warnings, 3 = errors if (exitCode < 0 || exitCode > 3) // 0 = nothing, 1 = hints, 2 = warnings, 3 = errors
return exitCode; return exitCode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment