OSDN Git Service

added padding in popup. fix mysql query in acquiring log list
authorwatanaby <watanaby@users.osdn.jp>
Sat, 25 Jun 2016 08:44:40 +0000 (17:44 +0900)
committerwatanaby <watanaby@users.osdn.jp>
Sat, 25 Jun 2016 08:44:40 +0000 (17:44 +0900)
doc/Changes.html
html/showlog.js
mngsrc/managementdb.c

index d87fddb..d5f3d20 100644 (file)
@@ -275,9 +275,9 @@ OpengateM History</H3>
        </DT><DD>
         Modified code to prevent inflation of Databases (drop table macippair/sessionmd:MySQL, delete old records of macmodify:MySQL and macinfo:SQLite3).
        </DD>
-       <DT>Ver.1.1.1 at 2016.6.24
+       <DT>Ver.1.1.1 at 2016.6.25
        </DT><DD>
-        Restored table sessionmd in management db (It holds the log expired after 1 month. Saving-log can be disabled in opengatemd.conf).
+        Restored table sessionmd in management db (It holds the log expired after 1 month. Log-saving can be disabled in opengatemd.conf).
        </DD>
 </DL>
 <P>
index 0a2a465..80e9e17 100644 (file)
@@ -43,7 +43,8 @@ function onmouseoverHandler(element, logItemNo) {
                // popup style\r
                popup.style.position = "fixed"; \r
                popup.style.left = e.clientX+20; \r
-               popup.style.top  = e.clientY+10; \r
+               popup.style.top  = e.clientY+10;\r
+               popup.style.padding  = 20;\r
                popup.style.background = colorList["popup"]; \r
                popup.style.display = "block";\r
 \r
index 6e19c58..a14c5af 100644 (file)
@@ -502,7 +502,7 @@ int getNextUsageLogFromMngDb(char* userId, char* extraId, char* macAddr, char* d
             " gatewayName "
             " from macaddrs, sessionmd "
             " where macaddrs.macAddress=sessionmd.macAddress "
-            " and entryDate < openTime and openTime < limitDate "
+            " and entryDate <= openTime and openTime <= limitDate "
             " and (%s<closeTime or closeTime=0) "
             " and userId='%s' and extraId='%s'",
             GetConfValue("ShowLogAfter"), userId, extraId);