Improve service dump a bit

Change-Id: I850aebae0f8b20f0041672dc36a361c5b2d73f9a
This commit is contained in:
Marc Blank 2012-09-19 12:46:13 -07:00
parent 9a6ad1fa10
commit 72d7dda97d
1 changed files with 2 additions and 2 deletions

View File

@ -2310,8 +2310,8 @@ public abstract class SyncManager extends Service implements Runnable {
@Override
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
pw.println("SyncManager: " + TAG + " up for " +
((System.currentTimeMillis() - mServiceStartTime)));
long uptime = System.currentTimeMillis() - mServiceStartTime;
pw.println("SyncManager: " + TAG + " up for " + (uptime / 1000 / 60) + " m");
if (mWakeLock != null) {
pw.println(" Holding WakeLock");
writeWakeLockTimes(pw, mWakeLocks, false);