为什么我的 MacBook 半夜突然醒来?

为什么我的 MacBook 半夜突然醒来?

我有一个Java 代码它跟踪我的 Mac 的活动窗口。它产生如下输出:

2013-12-02_20:08:36Google Chrome:putting code in wordpress - Google Search
2013-12-02_20:08:36Google Chrome:putting code in wordpress - Google Search
2013-12-02_20:09:18Google Chrome:Writing Code in Your Posts « WordPress Codex
2013-12-02_20:09:33Google Chrome:wordpress java code with syntax highlighting - Google Search
2013-12-02_20:09:37Google Chrome:wordpress java code with syntax highlighting - Google Search
2013-12-02_20:09:37Google Chrome:wordpress java code with syntax highlighting - Google Search
2013-12-02_20:10:19Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:10:35Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:10:38Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:10:38Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:11:20Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:11:36Google Chrome:Add New Post ‹ Joe Reddington — WordPress

但我注意到,在晚上,当笔记本电脑关闭时,它会偶尔产生其他条目......

2014-10-08_22:45:48firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_00:15:59firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_02:04:10firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_03:52:21firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_05:40:30firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_07:28:38firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_08:48:28Calendar:Calendar//this one is me *actually* opening the laptop in the morning.

这种情况不会每晚发生 - 但我很确定我没有做任何明显的事情来表示“嘿,每隔 100 分钟左右醒来一次,这样记录器就可以抓住你”

编辑:

果然,第二天晚上……

2014-10-13_21:17:41Finder
2014-10-13_21:18:43Finder
2014-10-14_00:34:14TeamViewer:Computers & Contacts
2014-10-14_02:35:04TeamViewer:Computers & Contacts
2014-10-14_04:35:56TeamViewer:Computers & Contacts
2014-10-14_08:15:06TeamViewer:Computers & Contacts
2014-10-14_08:16:07Finder
2014-10-14_08:17:42Finder

有任何想法吗?

答案1

您的代码是 Java 日志代码,非常酷;说实话非常有趣。话虽如此,如果不完全理解您的日志的含义,这仍然很难说。但将这些日志条目视为控制示例:

2013-12-02_20:08:36Google Chrome:putting code in wordpress - Google Search
2013-12-02_20:08:36Google Chrome:putting code in wordpress - Google Search
2013-12-02_20:09:18Google Chrome:Writing Code in Your Posts « WordPress Codex
2013-12-02_20:09:33Google Chrome:wordpress java code with syntax highlighting - Google Search
2013-12-02_20:09:37Google Chrome:wordpress java code with syntax highlighting - Google Search
2013-12-02_20:09:37Google Chrome:wordpress java code with syntax highlighting - Google Search
2013-12-02_20:10:19Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:10:35Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:10:38Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:10:38Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:11:20Google Chrome:Add New Post ‹ Joe Reddington — WordPress
2013-12-02_20:11:36Google Chrome:Add New Post ‹ Joe Reddington — WordPress

与您显示的这些行相比,这是感知问题的一部分:

2014-10-08_22:45:48firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_00:15:59firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_02:04:10firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_03:52:21firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_05:40:30firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_07:28:38firefox:Edit Page ‹ Joe Reddington — WordPress
2014-10-09_08:48:28Calendar:Calendar//this one is me *actually* opening the laptop in the morning.

在我看来,WordPress 可能偶尔会在浏览器窗口中使用 Ajax 调用来提取内容。因此,如果您在 FireFox 中加载了 WordPress 管理员屏幕,即使系统处于休眠状态,FireFox 仍会运行 Ajax 进程所需的 JavaScript,这就是您所看到的情况。

非标准时间表明某种完全外力使 WordPress 如此行事。例如,也许某个用户或爬虫在半夜访问您的网站,WordPress 会记录此信息,然后当 Ajax 调用发生时,FireFox 会更新您的管理面板。

相关内容