Skip to content

Commit

Permalink
time correct for month's mrtg-graph's
Browse files Browse the repository at this point in the history
  • Loading branch information
harp077 committed May 4, 2023
1 parent b03dfb4 commit 542bf5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/my/harp07/PjFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class PjFrame extends javax.swing.JFrame {
public static String currentLAF = "com.jtattoo.plaf.mint.MintLookAndFeel";
public static String currentTheme = "lib/themes/Default.theme";
public static List<String> tinyTemes = new ArrayList<>();
public static String zagolovok = "Pure Java Network Tools, v1.0.88, build 04-05-2023";
public static String zagolovok = "Pure Java Network Tools, v1.0.89, build 04-05-2023";

public PjFrame() {
initComponents();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jrobin/mrtg/client/AllTraffic.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public AllTraffic(String tip) {
graphBytes = client.getPngGraph(ri, li, new Date(System.currentTimeMillis() - 7 * 24 * 60 * 60 * 1000L), new Date(System.currentTimeMillis() + 1 * 60 * 60 * 1000L));
break;
case "Month":
graphBytes = client.getPngGraph(ri, li, new Date(System.currentTimeMillis() - 30 * 24 * 60 * 60 * 1000L), new Date(System.currentTimeMillis() + 1 * 60 * 60 * 1000L));
graphBytes = client.getPngGraph(ri, li, new Date(System.currentTimeMillis() - 31 * 24 * 60 * 60 * 1000L), new Date(System.currentTimeMillis() + 1*24 * 60 * 60 * 1000L));
break;
}
icon = new ImageIcon(graphBytes, "PNG graph");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jrobin/mrtg/client/GraphFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -544,9 +544,9 @@ private void setInitialDates() {
+ 7);*/
break;
case TYPE_MONTHLY:
startGC.setTimeInMillis(ticksNow - 30*24*60*60*1000L);
startGC.setTimeInMillis(ticksNow - 31*24*60*60*1000L);
start = startGC;
endGC.setTimeInMillis(ticksNow + 1*60*60*1000L);
endGC.setTimeInMillis(ticksNow + 1*24*60*60*1000L);
end = endGC;
/*start = new GregorianCalendar(gc.get(Calendar.YEAR), gc
.get(Calendar.MONTH), 1);
Expand Down

0 comments on commit 542bf5a

Please sign in to comment.