Skip to content

Commit 824c7dc

Browse files
committed
Show doenload time in message
1 parent 0b6ada6 commit 824c7dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

MAVGCL/src/main/java/com/comino/flight/log/ulog/MavLinkULOGHandler.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private MavLinkULOGHandler(IMAVController control) {
145145
// e.printStackTrace();
146146
}
147147

148-
logger.writeLocalMsg("[mgc] Import completed (" + speed + " kb/sec)");
148+
logger.writeLocalMsg("[mgc] Import completed in "+((System.currentTimeMillis()-start)/1000)+"secs");
149149
DateFormat formatter = new SimpleDateFormat("YYYYMMdd-HHmmss");
150150
String name = "Log-" + log_id + "-" + formatter.format(directory.get(log_id).time_utc);
151151
copyFileToLogDir(path, name);
@@ -231,7 +231,6 @@ private void requestLog(final int id) {
231231
System.out.println("Expected packages: " + unread_packages.size()+"/"+entry.size);
232232
logger.writeLocalMsg("[mgc] Importing Log (" + id + ") - " + (entry.size / 1024) + " kb");
233233

234-
235234
start = System.currentTimeMillis();
236235
retry = 0;
237236
chunk_offset = 0;

0 commit comments

Comments
 (0)