mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
record sleeping threads
This commit is contained in:
@@ -48,6 +48,11 @@ public class MetricsBean {
|
||||
thisMinute.statusesInserted += statusesCount;
|
||||
}
|
||||
|
||||
public void threadWaited() {
|
||||
thisHour.threadWaited++;
|
||||
thisMinute.threadWaited++;
|
||||
}
|
||||
|
||||
public Metric getLastMinute() {
|
||||
return lastMinute;
|
||||
}
|
||||
@@ -61,6 +66,7 @@ public class MetricsBean {
|
||||
private int feedsUpdated;
|
||||
private int entriesInserted;
|
||||
private int statusesInserted;
|
||||
private int threadWaited;
|
||||
|
||||
public int getFeedsRefreshed() {
|
||||
return feedsRefreshed;
|
||||
@@ -94,5 +100,13 @@ public class MetricsBean {
|
||||
this.statusesInserted = statusesInserted;
|
||||
}
|
||||
|
||||
public int getThreadWaited() {
|
||||
return threadWaited;
|
||||
}
|
||||
|
||||
public void setThreadWaited(int threadWaited) {
|
||||
this.threadWaited = threadWaited;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user