Skip to content

Commit

Permalink
Show doenload time in message
Browse files Browse the repository at this point in the history
  • Loading branch information
ecmnet committed Jun 29, 2022
1 parent 0b6ada6 commit 824c7dc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private MavLinkULOGHandler(IMAVController control) {
// e.printStackTrace();
}

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


start = System.currentTimeMillis();
retry = 0;
chunk_offset = 0;
Expand Down

0 comments on commit 824c7dc

Please sign in to comment.